Object/Class

logger

Logger

Related Docs: class Logger | package logger

Permalink

object Logger

Singleton in control of what is supposed to get logged, how it's to be logged and where it is to be logged We uses a dynamic variable in case multiple threads are used as can be in scalatests

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Logger
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class OutputCaptor extends AnyRef

    Permalink

    a class for managing capturing logging output in a string buffer

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clearStringBuffer(): Unit

    Permalink

    Clears the logging data in the string capture buffer if it exists

    Clears the logging data in the string capture buffer if it exists

    returns

    The logging data if it exists

  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 equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getGlobalLevel: LogLevel.Value

    Permalink
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def makeScope[A](args: Array[String] = Array.empty)(codeBlock: ⇒ A): A

    Permalink

    See makeScope using manager.

    See makeScope using manager. This creates a manager from a command line arguments style list of strings

    A

    return type of codeBlock

    args

    List of strings

    codeBlock

    the block to call

  15. def makeScope[A](manager: ExecutionOptionsManager)(codeBlock: ⇒ A): A

    Permalink

    This creates a block of code that will have access to the thread specific logger.

    This creates a block of code that will have access to the thread specific logger. The state will be set according to the logging options set in the common options of the manager

    A

    The return type of codeBlock

    manager

    source of logger settings

    codeBlock

    code to be run with these logger settings

    returns

    Whatever block returns

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def reset(): Unit

    Permalink

    This resets everything in the current Logger environment, including the destination use this with caution.

    This resets everything in the current Logger environment, including the destination use this with caution. Unexpected things can happen

  20. def setClassLogLevels(namesToLevel: Map[String, LogLevel.Value]): Unit

    Permalink

    Adds a list of of className, loglevel tuples to the global (dynamicVar) See testPackageNameMatch for a description of how class name matching works

    Adds a list of of className, loglevel tuples to the global (dynamicVar) See testPackageNameMatch for a description of how class name matching works

    namesToLevel

    a list of tuples (class name, log level)

  21. def setConsole(): Unit

    Permalink

    Sets the logging destination to Console.out

  22. def setLevel(classType: Class[_ <: LazyLogging], level: LogLevel.Value): Unit

    Permalink

    Set the log level based on a class type

    Set the log level based on a class type

    classType

    Kind of class

    level

    log level to set

    Example:
    1. setLevel(classOf[SomeClass], LogLevel.Debug)
  23. def setLevel(classOrPackageName: String, level: LogLevel.Value): Unit

    Permalink

    This sets the logging level for a particular class or package The package name must be general to specific.

    This sets the logging level for a particular class or package The package name must be general to specific. I.e. package1.package2.class package1.package2 package1 Will work. package2.class will not work if package2 is within package1

    classOrPackageName

    The string based class name or

    level

    The desired global logging level

  24. def setLevel(level: LogLevel.Value): Unit

    Permalink

    This sets the global logging level

    This sets the global logging level

    level

    The desired global logging level

  25. def setOptions(optionsManager: ExecutionOptionsManager): Unit

    Permalink

    This is used to set the options that have been set in a optionsManager or are coming from the command line via an options manager

    This is used to set the options that have been set in a optionsManager or are coming from the command line via an options manager

    optionsManager

    manager

  26. def setOutput(stream: PrintStream): Unit

    Permalink

    Set the logging destination to a print stream

    Set the logging destination to a print stream

    stream

    destination stream

  27. def setOutput(fileName: String): Unit

    Permalink

    Set the logging destination to a file name

    Set the logging destination to a file name

    fileName

    destination name

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped