izumi.logstage.api.routing
package izumi.logstage.api.routing
Members list
Type members
Classlikes
final class AdaptiveLogConfigServiceImpl(loggerConfig: LoggerConfig, sinksRoutes: Map[String, Seq[LogSink]]) extends LogConfigServiceImpl
Attributes
- Supertypes
object ConfigurableLogRouter
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
class ConfigurableLogRouter(logConfigService: LogConfigService, buffer: LogQueue) extends LogRouter
class LogConfigServiceImpl(loggerConfig: LoggerConfig) extends LogConfigService
Attributes
- Supertypes
- Known subtypes
class StaticLogRouter extends LogRouter
When not configured, logstage-adapter-slf4j will log messages with level >= Info to stdout.
When not configured, logstage-adapter-slf4j will log messages with level >= Info to stdout.
Due to the global mutable nature of slf4j to configure slf4j logging you'll have to mutate a global singleton. To change its settings, replace its LogRouter with the same one you use elsewhere in your application.
import logstage._
import izumi.logstage.api.routing.StaticLogRouter
val myLogger = IzLogger()
// configure SLF4j to use the same router that `myLogger` uses
StaticLogRouter.instance.setup(myLogger.router)
Attributes
- Companion
- object
- Supertypes
object StaticLogRouter
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StaticLogRouter.type
In this article