public final class LogKeyValueBuilder extends java.lang.Object implements LogKey, RecursiveLogKey
| Modifier and Type | Method and Description |
|---|---|
AsLevel |
asDebug()
Log information as Debug
|
AsLevel |
asError()
Log information as Error
|
AsLevel |
asInfo()
Log information as Info
|
AsLevel |
asWarn()
Log information as Warn
|
LogKey |
changeKey(java.lang.String key)
Construct a Key with '=' if not present.
|
protected static LogKeyValueBuilder |
create(org.apache.logging.log4j.Logger logger,
java.lang.String key)
Create a LogKeyValueBuilder
|
java.lang.String |
getKey() |
LogKey |
key(java.lang.String key)
Add a key to log
|
RecursiveLogKey |
value(java.lang.Object msg)
Attach a value to this correspondent key.
|
protected static LogKeyValueBuilder create(org.apache.logging.log4j.Logger logger, java.lang.String key)
logger - internal Loggerkey - Keypublic RecursiveLogKey value(java.lang.Object msg)
LogKeypublic java.lang.String getKey()
public LogKey key(java.lang.String key)
RecursiveLogKeykey in interface RecursiveLogKeykey - key value. Can be formated with "=" or without it.public LogKey changeKey(java.lang.String key)
key - a Stringpublic AsLevel asError()
AsLevel