LogLevelByNameConfig

zio.logging.LogFilter.LogLevelByNameConfig
See theLogLevelByNameConfig companion object

Defines a filter from a list of log-levels specified per tree node

Example:

 val filter =
   logLevelByName(
    LogLevel.Debug,
    "io.netty"                                       -> LogLevel.Info,
    "io.grpc.netty"                                  -> LogLevel.Info
)

will use the Debug log level for everything except for log events with the logger name prefixed by either List("io", "netty") or List("io", "grpc", "netty"). Logger name is extracted from Trace.

Value parameters

mappings

List of mappings, nesting defined by dot-separated strings

rootLevel

Minimum log level for the root node

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product