object LogContext extends Serializable
- Alphabetic
- By Inheritance
- LogContext
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(contextName: String, id: String): LogContext
Apply method to create a context given a context name and an id
Apply method to create a context given a context name and an id
- contextName
the context name
- id
the id
- returns
the new context
- def apply(contextName: String): LogContext
Apply method to create a context given a context name
Apply method to create a context given a context name
- contextName
the context name
- returns
the new context
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def current: LogContext
The current log context.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def root: LogContext
The root log context.
The root log context. Empty context which prints nothing.
- Note
This method is provided to Java user for convenience, and it's equivalent to
RootLogContext$.MODULE$.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withChild(contextName: String, closure: Runnable): Unit
Creates a child of the current log context, dynamically binds the current log context to it and evaluates code under the new context.
Creates a child of the current log context, dynamically binds the current log context to it and evaluates code under the new context. Java friendly version for lambda expressions that return void.
- contextName
The child context name.
- closure
The closure that is evaluated withing the new log context.
- returns
the result of the closure.
- def withChild(contextName: String, id: String, closure: Runnable): Unit
Creates a child of the current log context, dynamically binds the current log context to it and evaluates code under the new context.
Creates a child of the current log context, dynamically binds the current log context to it and evaluates code under the new context. Java friendly version for lambda expressions that return void.
- contextName
The child context name.
- id
The child ID.
- closure
The closure that is evaluated withing the new log context.
- returns
the result of the closure.
- def withChild[T](contextName: String)(closure: => T): T
Creates a child of the current log context, dynamically binds the current log context to it and evaluates code under the new context.
Creates a child of the current log context, dynamically binds the current log context to it and evaluates code under the new context.
- T
The return type of the closure.
- contextName
The child context name.
- closure
The closure that is evaluated withing the new log context.
- returns
the result of the closure.
- def withChild[T](contextName: String, id: String)(closure: => T): T
Creates a child of the current log context, dynamically binds the current log context to it and evaluates code under the new context.
Creates a child of the current log context, dynamically binds the current log context to it and evaluates code under the new context.
- T
The return type of the closure.
- contextName
The child context name.
- id
The child ID.
- closure
The closure that is evaluated withing the new log context.
- returns
the result of the closure.
- def withContext(logContext: LogContext, closure: Runnable): Unit
Dynamically binds the current log context to a new value and evaluates code under the new context.
Dynamically binds the current log context to a new value and evaluates code under the new context. Java friendly version for lambda expressions that return void.
- logContext
The new log context value.
- closure
The closure that is evaluated within the new log context.
- def withContext[T](logContext: LogContext)(closure: => T): T
Dynamically binds the current log context to a new value and evaluates code under the new context.
Dynamically binds the current log context to a new value and evaluates code under the new context.
- T
The return type of the closure.
- logContext
The new log context value.
- closure
The closure that is evaluated within the new log context.
- returns
the result of the closure.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)