scribe
package scribe
- Alphabetic
- By Inheritance
- scribe
- LoggerSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit class AnyLogging extends AnyRef
- class Level extends AnyRef
- trait LogHandler extends AnyRef
- class LogRecord extends AnyRef
-
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.
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)
- trait LoggerSupport extends AnyRef
-
trait
Logging
extends AnyRef
Logging is a mix-in to conveniently add logging support to any class or object.
- case class StandardLogHandler (level: Level, formatter: Formatter, writer: Writer) extends LogHandler with Product with Serializable
Abstract Value Members
-
abstract
def
multiplier: Double
- Definition Classes
- LoggerSupport
-
abstract
def
name: Option[String]
- Definition Classes
- LoggerSupport
-
abstract
def
parentName: Option[String]
- Definition Classes
- LoggerSupport
Concrete Value Members
-
def
accepts(value: Double): Boolean
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
-
def
addHandler(handler: LogHandler): Unit
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
-
def
clearHandlers(): Unit
Removes all handlers currently on this logger.
Removes all handlers currently on this logger.
- Definition Classes
- LoggerSupport
-
macro
def
debug(t: ⇒ Throwable): Unit
- Definition Classes
- LoggerSupport
-
macro
def
debug(message: ⇒ Any): Unit
Debug log entry.
Debug log entry. Uses Macros to optimize performance.
- Definition Classes
- LoggerSupport
-
macro
def
error(t: ⇒ Throwable): Unit
Error log entry.
Error log entry. Uses Macros to optimize performance.
- Definition Classes
- LoggerSupport
-
macro
def
error(message: ⇒ Any): Unit
Error log entry.
Error log entry. Uses Macros to optimize performance.
- Definition Classes
- LoggerSupport
-
macro
def
info(t: ⇒ Throwable): Unit
- Definition Classes
- LoggerSupport
-
macro
def
info(message: ⇒ Any): Unit
Info log entry.
Info log entry. Uses Macros to optimize performance.
- Definition Classes
- LoggerSupport
-
def
log(record: LogRecord): Unit
- Attributes
- protected
- Definition Classes
- LoggerSupport
-
def
log(level: Level, message: ⇒ Any, className: String, methodName: Option[String] = None, lineNumber: Int = 1, stringify: (Any) ⇒ String = LogRecord.DefaultStringify): Unit
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
- stringify
the conversion function to generate a String from the message. Defaults to LogRecord.DefaultStringify.
- Definition Classes
- LoggerSupport
-
def
parent: Option[Logger]
- Definition Classes
- LoggerSupport
-
def
removeHandler(handler: LogHandler): Unit
Removes an handler that was previously added to this logger.
Removes an handler that was previously added to this logger.
- Definition Classes
- LoggerSupport
-
macro
def
trace(t: ⇒ Throwable): Unit
- Definition Classes
- LoggerSupport
-
macro
def
trace(message: ⇒ Any): Unit
Trace log entry.
Trace log entry. Uses Macros to optimize performance.
- Definition Classes
- LoggerSupport
-
macro
def
warn(t: ⇒ Throwable): Unit
- Definition Classes
- LoggerSupport
-
macro
def
warn(message: ⇒ Any): Unit
Warn log entry.
Warn log entry. Uses Macros to optimize performance.
- Definition Classes
- LoggerSupport
- object Level
- object LogHandler
- object LogRecord
- object Logger extends Serializable
- object Macros
- object Platform