Class/Object

scribe

Logger

Related Docs: object Logger | package scribe

Permalink

case class Logger(parentName: Option[String] = Some(Logger.rootName), multiplier: Double = 1.0) extends LoggerSupport with 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.

parentName

the name of the parent logger if there is one (defaults to the root logger)

multiplier

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

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

Instance Constructors

  1. new Logger(parentName: Option[String] = Some(Logger.rootName), multiplier: Double = 1.0)

    Permalink

    parentName

    the name of the parent logger if there is one (defaults to the root logger)

    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)

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

    Definition Classes
    LoggerSupport
  5. def addHandler(handler: LogHandler): Unit

    Permalink

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

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

    Definition Classes
    LoggerSupport
  6. final def asInstanceOf[T0]: T0

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

    Permalink

    Removes all handlers currently on this logger.

    Removes all handlers currently on this logger.

    Definition Classes
    LoggerSupport
  8. def clone(): AnyRef

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

    Permalink
    Definition Classes
    LoggerSupport
  10. macro def debug(message: ⇒ Any): Unit

    Permalink

    Debug log entry.

    Debug log entry. Uses Macros to optimize performance.

    Definition Classes
    LoggerSupport
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. macro def error(t: ⇒ Throwable): Unit

    Permalink

    Error log entry.

    Error log entry. Uses Macros to optimize performance.

    Definition Classes
    LoggerSupport
  13. macro def error(message: ⇒ Any): Unit

    Permalink

    Error log entry.

    Error log entry. Uses Macros to optimize performance.

    Definition Classes
    LoggerSupport
  14. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. macro def info(t: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    LoggerSupport
  17. macro def info(message: ⇒ Any): Unit

    Permalink

    Info log entry.

    Info log entry. Uses Macros to optimize performance.

    Definition Classes
    LoggerSupport
  18. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Attributes
    protected[scribe]
    Definition Classes
    LoggerSupport
  20. def log(level: Level, message: ⇒ Any, className: String, 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

    Definition Classes
    LoggerSupport
  21. 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)

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

    Definition Classes
    LoggerLoggerSupport
  22. def name: Option[String]

    Permalink
    Definition Classes
    LoggerLoggerSupport
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def parent: Option[Logger]

    Permalink
    Definition Classes
    LoggerSupport
  27. val parentName: Option[String]

    Permalink

    the name of the parent logger if there is one (defaults to the root logger)

    the name of the parent logger if there is one (defaults to the root logger)

    Definition Classes
    LoggerLoggerSupport
  28. def removeHandler(handler: LogHandler): Unit

    Permalink

    Removes an handler that was previously added to this logger.

    Removes an handler that was previously added to this logger.

    Definition Classes
    LoggerSupport
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. macro def trace(t: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    LoggerSupport
  31. macro def trace(message: ⇒ Any): Unit

    Permalink

    Trace log entry.

    Trace log entry. Uses Macros to optimize performance.

    Definition Classes
    LoggerSupport
  32. def update(updater: ⇒ Logger): Unit

    Permalink

    Replaces the current logger with what is returned by updater.

    Replaces the current logger with what is returned by updater. Existing handlers are added to the new Logger.

    updater

    function to create the new logger

  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. macro def warn(t: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    LoggerSupport
  37. macro def warn(message: ⇒ Any): Unit

    Permalink

    Warn log entry.

    Warn log entry. Uses Macros to optimize performance.

    Definition Classes
    LoggerSupport

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LoggerSupport

Inherited from AnyRef

Inherited from Any

Ungrouped