Packages

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

Source
Logger.scala
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

    a class for managing capturing logging output in a string buffer

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clearStringBuffer(): Unit

    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
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def getGlobalLevel: LogLevel.Value
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def makeScope[A](options: AnnotationSeq = Seq.empty)(codeBlock: ⇒ A): A

    Set a scope for this logger based on available annotations

    Set a scope for this logger based on available annotations

    A

    return type of the code block

    options

    a sequence annotations

    codeBlock

    some Scala code over which to define this scope

    returns

    the original return of the code block

  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def reset(): Unit

    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

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

    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)

  19. def setConsole(): Unit

    Sets the logging destination to Console.out

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

    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)
  21. def setLevel(classOrPackageName: String, level: LogLevel.Value): Unit

    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

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

    This sets the global logging level

    This sets the global logging level

    level

    The desired global logging level

  23. def setOptions(inputAnnotations: AnnotationSeq): Unit

    Set logger options based on the content of an AnnotationSeq

    Set logger options based on the content of an AnnotationSeq

    inputAnnotations

    annotation sequence containing logger options

  24. def setOutput(stream: PrintStream): Unit

    Set the logging destination to a print stream

    Set the logging destination to a print stream

    stream

    destination stream

  25. def setOutput(fileName: String): Unit

    Set the logging destination to a file name

    Set the logging destination to a file name

    fileName

    destination name

  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped