We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello! No output to log of io.rsocket on jvm
What is the idiomatic way to organize logging for logback jvm? I looked at current implementations, and did it by analogy with #308
val Slf4jLoggerFactory = object : LoggerFactory { private fun LoggingLevel.sl4jLevel() = when (this) { LoggingLevel.TRACE -> Level.TRACE LoggingLevel.DEBUG -> Level.DEBUG LoggingLevel.INFO -> Level.INFO LoggingLevel.WARN -> Level.WARN LoggingLevel.ERROR -> Level.ERROR } override fun logger(tag: String): Logger = org.slf4j.LoggerFactory.getLogger(tag).let { logger -> return object : Logger { override val tag: String get() = logger.name override fun isLoggable(level: LoggingLevel) = logger.isEnabledForLevel(level.sl4jLevel()) override fun rawLog( level: LoggingLevel, throwable: Throwable?, message: Any?, ) { logger.atLevel(level.sl4jLevel()).setCause(throwable).log(message?.toString()) } } } }
How correct is this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello!
No output to log of io.rsocket on jvm
What is the idiomatic way to organize logging for logback jvm? I looked at current implementations, and did it by analogy with #308
How correct is this?
The text was updated successfully, but these errors were encountered: