final case class Logger(transports: List[LoggerTransport]) extends LoggerMacroExtensions with Product with Serializable
This is the base class for all logging operations. Logger is a collection of LoggerTransports. Internally whenever a message needs to be logged, it is broadcasted to all the available transports. The transports can internally decide what to do with the message and discard it if the message or the level is not relevant to the transport.
- Self Type
- Logger
- Alphabetic
- By Inheritance
- Logger
- Serializable
- Serializable
- Product
- Equals
- LoggerMacroExtensions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Logger(transports: List[LoggerTransport])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++(other: Logger): Logger
Combines to loggers into one
-
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() @HotSpotIntrinsicCandidate()
-
def
combine(other: Logger): Logger
Combines to loggers into one
-
final macro
def
debug(msg: String): Unit
- Definition Classes
- LoggerMacroExtensions
-
def
detectLevelFromEnv(env: String): Logger
Modifies the transports to read the log level from the passed environment variable.
-
def
detectLevelFromProps(env: String): Logger
Modifies the transports to read the log level from the set system property.
-
def
dispatch(msg: String, level: LogLevel): Unit
Dispatches the parameters to all the transports.
Dispatches the parameters to all the transports. Internally invoked by the macro.
-
def
dispatch(msg: String, level: LogLevel, cause: Option[Throwable], sourceLocation: Option[SourcePos]): Unit
Dispatches the parameters to all the transports.
Dispatches the parameters to all the transports. Internally invoked by the macro.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final macro
def
error(msg: String, throwable: Throwable): Unit
- Definition Classes
- LoggerMacroExtensions
-
final macro
def
error(msg: String): Unit
- Definition Classes
- LoggerMacroExtensions
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final macro
def
info(msg: String): Unit
- Definition Classes
- LoggerMacroExtensions
-
val
isDebugEnabled: Boolean
- Definition Classes
- Logger → LoggerMacroExtensions
-
val
isErrorEnabled: Boolean
- Definition Classes
- Logger → LoggerMacroExtensions
-
val
isInfoEnabled: Boolean
- Definition Classes
- Logger → LoggerMacroExtensions
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
isTraceEnabled: Boolean
- Definition Classes
- Logger → LoggerMacroExtensions
-
val
isWarnEnabled: Boolean
- Definition Classes
- Logger → LoggerMacroExtensions
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
startsWith(prefix: String): Logger
Creates a new logger that will log messages that start with the given prefix.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final macro
def
trace(msg: String): Unit
- Definition Classes
- LoggerMacroExtensions
- val transports: List[LoggerTransport]
-
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( ... )
-
final macro
def
warn(msg: String): Unit
- Definition Classes
- LoggerMacroExtensions
-
def
withFilter(filter: (String) ⇒ Boolean): Logger
Creates a new logger that only log messages that are accepted by the provided filter.
-
def
withFormat(format: LogFormat): Logger
Modifies all the transports to support the given log format
-
def
withLevel(level: LogLevel): Logger
Modifies the level for each transport.
Modifies the level for each transport. Messages that don't meet that level will not be logged by any of the transports
-
def
withTags(tags: String*): Logger
Creates a new Logger with the provided tags
-
def
withTags(tags: Iterable[String]): Logger
Creates a new Logger with the provided tags
-
def
withTransport(transport: LoggerTransport): Logger
Adds a new transport to the logger