Class/Object

com.outr.scribe

Logger

Related Docs: object Logger | package scribe

Permalink

case class Logger(name: String, parent: Option[Logger] = Some(Logger.Root), multiplier: Double = 1.0) extends Product with Serializable

Logger is the class to which all logging calls are made. The primary use-case of Logger is via use of the Logging trait that may be mixed-in to any class.

name

the name of this logger

parent

the parent logger (defaults to Logger.Root)

multiplier

the multiplier that should be applied to boost the value of all messages routed through this logger (Defaults to 1.0)

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Logger
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Logger(name: String, parent: Option[Logger] = Some(Logger.Root), multiplier: Double = 1.0)

    Permalink

    name

    the name of this logger

    parent

    the parent logger (defaults to Logger.Root)

    multiplier

    the multiplier that should be applied to boost the value of all messages routed through this logger (Defaults to 1.0)

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accepts(value: Double): Boolean

    Permalink

    Returns true if the supplied value will be accepted by a handler of this logger or an ancestor (up the parent tree)

  5. def addHandler(handler: LogHandler): Unit

    Permalink

    Adds a handler that will receive log records submitted to this logger and any descendant loggers.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clearHandlers(): Unit

    Permalink

    Removes all handlers currently on this logger.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. macro def debug(message: ⇒ Any): Unit

    Permalink

    Debug log entry.

    Debug log entry. Uses Macros to optimize performance.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. macro def error(message: ⇒ Any): Unit

    Permalink

    Error log entry.

    Error log entry. Uses Macros to optimize performance.

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. macro def info(message: ⇒ Any): Unit

    Permalink

    Info log entry.

    Info log entry. Uses Macros to optimize performance.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def log(record: LogRecord): Unit

    Permalink
    Attributes
    protected[com.outr.scribe]
  17. def log(level: Level, message: ⇒ Any, methodName: Option[String] = None, lineNumber: Int = 1): Unit

    Permalink

    Log method invoked by trace, debug, info, warn, and error.

    Log method invoked by trace, debug, info, warn, and error. Ideally should not be called directly as it will not be able to take advantage of Macro optimizations.

    level

    the logging level

    message

    function to derive the message for the log

    methodName

    the method name if applicable

    lineNumber

    the line number the logging was invoked on

  18. val multiplier: Double

    Permalink

    the multiplier that should be applied to boost the value of all messages routed through this logger (Defaults to 1.0)

  19. val name: String

    Permalink

    the name of this logger

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val parent: Option[Logger]

    Permalink

    the parent logger (defaults to Logger.Root)

  24. def removeHandler(handler: LogHandler): Unit

    Permalink

    Removes an handler that was previously added to this logger.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. macro def trace(message: ⇒ Any): Unit

    Permalink

    Trace log entry.

    Trace log entry. Uses Macros to optimize performance.

  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. macro def warn(message: ⇒ Any): Unit

    Permalink

    Warn log entry.

    Warn log entry. Uses Macros to optimize performance.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped