class LogContext extends Serializable
This class implements the logging context concept that consists of a set of information to be appended to logging messages to give the user a clear understanding of the computational context where a given logging message comes from
With reference to logging please refer to the following message:
Logger: logging message // Context contextName=id childContextName=childId
- Note
This class is mainly meant to be used in conjunction with a ContextAwareLogger
- Alphabetic
- By Inheritance
- LogContext
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LogContext(contextName: String, id: Option[String], parent: Option[LogContext])
- contextName
the context string
- id
an id to uniquely identify a specific logging context
- parent
a parent LogContext. Parent LogContext messages are prepended to the current context
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def child(contextName: String): LogContext
Method to create a new context by appending a child to an existing one
Method to create a new context by appending a child to an existing one
- contextName
the child context name
- returns
the child context
- def child(contextName: String, id: String): LogContext
Method to create a new context by appending a child to an existing one
Method to create a new context by appending a child to an existing one
- contextName
the child context name
- id
the child id
- returns
the child context
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatMessage(message: String): String
The formatting message creating the log line
The formatting message creating the log line
- message
the message to be appended to the log line
- returns
the log line made of the context and the message
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val toString: String
String conversion method performing the context message creation
String conversion method performing the context message creation
- Definition Classes
- LogContext → 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)