final case class LogLevelByNameConfig(rootLevel: LogLevel, mappings: Map[String, LogLevel]) extends Product with Serializable
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.
- rootLevel
Minimum log level for the root node
- mappings
List of mappings, nesting defined by dot-separated strings
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LogLevelByNameConfig
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val mappings: Map[String, LogLevel]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val rootLevel: LogLevel
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toFilter[M]: LogFilter[M]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withMapping(name: String, level: LogLevel): LogLevelByNameConfig
- def withMappings(mappings: Map[String, LogLevel]): LogLevelByNameConfig
- def withRootLevel(rootLevel: LogLevel): LogLevelByNameConfig