Class/Object

com.twitter.logging

LoggerFactory

Related Docs: object LoggerFactory | package logging

Permalink

case class LoggerFactory(node: String = "", level: Option[Level] = None, handlers: List[HandlerFactory] = Nil, useParents: Boolean = true) extends () ⇒ Logger with Product with Serializable

A factory to configure a Logger. Note that because Loggers are global, executing this factory has side-effects.

node

Name of the logging node. The default ("") is the top-level logger.

level

Log level for this node. Leaving it None is java's secret signal to use the parent logger's level.

handlers

Where to send log messages.

useParents

Override to have log messages stop at this node. Otherwise they are passed up to parent nodes.

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

Instance Constructors

  1. new LoggerFactory(node: String = "", level: Option[Level] = None, handlers: List[HandlerFactory] = Nil, useParents: Boolean = true)

    Permalink

    node

    Name of the logging node. The default ("") is the top-level logger.

    level

    Log level for this node. Leaving it None is java's secret signal to use the parent logger's level.

    handlers

    Where to send log messages.

    useParents

    Override to have log messages stop at this node. Otherwise they are passed up to parent nodes.

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 apply(): Logger

    Permalink

    Registers new handlers and setting with the logger at node

    Registers new handlers and setting with the logger at node

    Definition Classes
    LoggerFactory → Function0
    Note

    It clears all the existing handlers for the node

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. val handlers: List[HandlerFactory]

    Permalink

    Where to send log messages.

  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val level: Option[Level]

    Permalink

    Log level for this node.

    Log level for this node. Leaving it None is java's secret signal to use the parent logger's level.

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

    Permalink
    Definition Classes
    AnyRef
  14. val node: String

    Permalink

    Name of the logging node.

    Name of the logging node. The default ("") is the top-level logger.

  15. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    Function0 → AnyRef → Any
  19. val useParents: Boolean

    Permalink

    Override to have log messages stop at this node.

    Override to have log messages stop at this node. Otherwise they are passed up to parent nodes.

  20. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from () ⇒ Logger

Inherited from AnyRef

Inherited from Any

Ungrouped