Packages

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Logger
  2. Serializable
  3. Product
  4. Equals
  5. LoggerMacroExtensions
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Logger(transports: List[LoggerTransport])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(other: Logger): Logger

    Combines to loggers into one

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. def combine(other: Logger): Logger

    Combines to loggers into one

  8. final macro def debug(msg: String): Unit
    Definition Classes
    LoggerMacroExtensions
  9. def detectLevelFromEnv(env: String): Logger

    Modifies the transports to read the log level from the passed environment variable.

  10. def detectLevelFromProps(env: String): Logger

    Modifies the transports to read the log level from the set system property.

  11. 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.

  12. 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.

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final macro def error(msg: String, throwable: Throwable): Unit
    Definition Classes
    LoggerMacroExtensions
  15. final macro def error(msg: String): Unit
    Definition Classes
    LoggerMacroExtensions
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final macro def info(msg: String): Unit
    Definition Classes
    LoggerMacroExtensions
  18. val isDebugEnabled: Boolean
    Definition Classes
    LoggerLoggerMacroExtensions
  19. val isErrorEnabled: Boolean
    Definition Classes
    LoggerLoggerMacroExtensions
  20. val isInfoEnabled: Boolean
    Definition Classes
    LoggerLoggerMacroExtensions
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val isTraceEnabled: Boolean
    Definition Classes
    LoggerLoggerMacroExtensions
  23. val isWarnEnabled: Boolean
    Definition Classes
    LoggerLoggerMacroExtensions
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. def startsWith(prefix: String): Logger

    Creates a new logger that will log messages that start with the given prefix.

  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. final macro def trace(msg: String): Unit
    Definition Classes
    LoggerMacroExtensions
  31. val transports: List[LoggerTransport]
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final macro def warn(msg: String): Unit
    Definition Classes
    LoggerMacroExtensions
  36. def withFilter(filter: (String) => Boolean): Logger

    Creates a new logger that only log messages that are accepted by the provided filter.

  37. def withFormat(format: LogFormat): Logger

    Modifies all the transports to support the given log format

  38. 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

  39. def withTags(tags: String*): Logger

    Creates a new Logger with the provided tags

  40. def withTags(tags: Iterable[String]): Logger

    Creates a new Logger with the provided tags

  41. def withTransport(transport: LoggerTransport): Logger

    Adds a new transport to the logger

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LoggerMacroExtensions

Inherited from AnyRef

Inherited from Any

Ungrouped