org.powerscala.log

Logger

Related Docs: object Logger | package log

class Logger extends EventProcessor[LogRecord, Intercept, Intercept] with Listenable

Logger is used to receive LogRecords, fire to handlers, and propagate them up to parent Loggers. A Logger always defaults Logger.Root as the parent.

Linear Supertypes
Listenable, EventProcessor[LogRecord, Intercept, Intercept], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Logger
  2. Listenable
  3. EventProcessor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def +=(handler: Handler): Unit

    Add a handler to this Logger.

  4. def +=(listener: Listener[LogRecord, Intercept]): Unit

    Definition Classes
    EventProcessor
  5. def -=(handler: Handler): Unit

    Remove a handler from this Logger.

  6. def -=(listener: Listener[LogRecord, Intercept]): Unit

    Definition Classes
    EventProcessor
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def add(listener: Listener[LogRecord, Intercept]): Unit

    Definition Classes
    EventProcessor
  9. def addHandler(writer: Writer, level: Level = Level.Info, formatter: Formatter = Formatter.Default): SimpleHandler

    Creates a handler and adds it to this Logger.

    Creates a handler and adds it to this Logger.

    writer

    the writer

    level

    the level to filter

    formatter

    the formatter

    returns

    handler

  10. def and[NE >: LogRecord, NV >: Intercept, NR >: Intercept](processor: EventProcessor[NE, NV, NR]): ProcessorGroup[NE, NV, NR]

    Definition Classes
    EventProcessor
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def boost(value: Double): Unit

    Boosts the muliplier (multiplies multiplier by the supplied value).

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def configureFileLogging(name: String = loggerName, directory: File = new File("logs"), level: Level = Level.Info, formatter: Formatter = Formatter.Default): SimpleHandler

    Convenience method to add a file logging handler to this logger.

    Convenience method to add a file logging handler to this logger.

    name

    the name to use to derive the filename. Defaults to the logger name.

    directory

    the directory where logs should be stored.

    level

    the level of logs to write to the file.

    formatter

    how logs should be formatted in the output.

    returns

    the created and added handler

  15. def create(priority: Priority, modes: ListenMode*)(f: (LogRecord) ⇒ Intercept): FunctionalListener[LogRecord, Intercept]

    Definition Classes
    EventProcessor
  16. def debug(message: ⇒ Any): Unit

  17. def detailed: Boolean

    Flag defining whether detailed LogRecords should be created for log records created from this logger.

    Flag defining whether detailed LogRecords should be created for log records created from this logger.

    Detailed LogRecords include information on the method and line number the log entry occurred at.

  18. def detailed_=(detailed: Boolean): Unit

    Flag defining whether detailed LogRecords should be created for log records created from this logger.

    Flag defining whether detailed LogRecords should be created for log records created from this logger.

    Detailed LogRecords include information on the method and line number the log entry occurred at.

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

    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def error(message: ⇒ Any, t: Throwable): Unit

  22. def error(message: ⇒ Any): Unit

  23. val eventManifest: Manifest[LogRecord]

    Definition Classes
    Logger → EventProcessor
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def fire(event: LogRecord, mode: ListenMode): Intercept

    Definition Classes
    EventProcessor
  26. def fireAdditional(state: EventState[LogRecord], mode: ListenMode, listenable: Listenable): Unit

    Attributes
    protected
    Definition Classes
    EventProcessor
  27. def fireInternal(state: EventState[LogRecord], mode: ListenMode, listenable: Listenable): Unit

    Attributes
    protected
    Definition Classes
    EventProcessor
  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def handleListenerResponse(value: Intercept, state: EventState[LogRecord]): Unit

    Attributes
    protected
    Definition Classes
    Logger → EventProcessor
  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. def info(message: ⇒ Any): Unit

  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. def isListenerTypeValid(state: EventState[LogRecord], listener: Listener[_, _]): Boolean

    Attributes
    protected
    Definition Classes
    EventProcessor
  34. def isModeValid(listener: Listener[_, _], mode: ListenMode): Boolean

    Attributes
    protected
    Definition Classes
    EventProcessor
  35. def isNameValid(listener: Listener[_, _]): Boolean

    Attributes
    protected
    Definition Classes
    EventProcessor
  36. def listen[Event, Response, Result](name: String, priority: Priority, modes: ListenMode*)(f: (Event) ⇒ Response)(implicit eventManifest: Manifest[Event]): FunctionalListener[Event, Response]

    Definition Classes
    Listenable
  37. def listen(priority: Priority, modes: ListenMode*)(f: (LogRecord) ⇒ Intercept): FunctionalListener[LogRecord, Intercept]

    Definition Classes
    EventProcessor
  38. def listenable: Logger

    Definition Classes
    Logger → EventProcessor
  39. val listeners: Listeners

    Definition Classes
    Listenable
  40. def log(record: LogRecord): Unit

  41. def log(level: Level, message: ⇒ Any): Unit

  42. val loggerName: String

  43. def multiplier: Double

    The multiplier boosts the value of LogRecords received at this Logger and retains the boosted value as it propagates up hierarchically.

  44. def multiplier_=(value: Double): Unit

    The multiplier boosts the value of LogRecords received at this Logger and retains the boosted value as it propagates up hierarchically.

    The multiplier boosts the value of LogRecords received at this Logger and retains the boosted value as it propagates up hierarchically.

    Defaults to 1.0.

  45. val name: String

    Definition Classes
    Logger → EventProcessor
  46. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  47. final def notify(): Unit

    Definition Classes
    AnyRef
  48. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  49. def on(f: (LogRecord) ⇒ Intercept, priority: Priority): FunctionalListener[LogRecord, Intercept]

    Definition Classes
    EventProcessor
  50. def once(f: (LogRecord) ⇒ Intercept, priority: Priority): Listener[LogRecord, Intercept]

    Definition Classes
    EventProcessor
  51. def onceConditional(default: Intercept, priority: Priority)(f: (LogRecord) ⇒ Option[Intercept]): Listener[LogRecord, Intercept]

    Definition Classes
    EventProcessor
  52. def parent: Option[Logger]

    This Logger's parent Logger.

  53. def parent_=(parent: Option[Logger]): Unit

    Set the parent Logger.

    Set the parent Logger. If this is set to None then propagation will stop with this Logger.

    Defaults to Logger.Root.

  54. def partial(default: Intercept, priority: Priority)(f: PartialFunction[LogRecord, Intercept]): FunctionalListener[LogRecord, Intercept]

    Definition Classes
    EventProcessor
  55. def remove(listener: Listener[LogRecord, Intercept]): Unit

    Definition Classes
    EventProcessor
  56. def responseFor(state: EventState[LogRecord]): Intercept

    Attributes
    protected
    Definition Classes
    Logger → EventProcessor
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  58. implicit val thisListenable: Listenable

    Definition Classes
    Listenable
  59. def toString(): String

    Definition Classes
    AnyRef → Any
  60. def trace(message: ⇒ Any): Unit

  61. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. def warn(message: ⇒ Any, t: Throwable): Unit

  65. def warn(message: ⇒ Any): Unit

Inherited from Listenable

Inherited from EventProcessor[LogRecord, Intercept, Intercept]

Inherited from AnyRef

Inherited from Any

Ungrouped