public class SimpleContextAware extends Object implements ch.qos.logback.core.spi.ContextAware
LogbackInternalLogger instance for
non-appender-related logging. It is constructed with a Context
instance (how we get that is situation-dependent) and a name that's used
for log messages.| Constructor and Description |
|---|
SimpleContextAware(ch.qos.logback.core.Context context,
String originName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String msg) |
void |
addError(String msg,
Throwable ex) |
void |
addInfo(String msg) |
void |
addInfo(String msg,
Throwable ex) |
void |
addStatus(ch.qos.logback.core.status.Status status) |
void |
addWarn(String msg) |
void |
addWarn(String msg,
Throwable ex) |
ch.qos.logback.core.Context |
getContext() |
void |
setContext(ch.qos.logback.core.Context value) |
public SimpleContextAware(ch.qos.logback.core.Context context,
String originName)
public void setContext(ch.qos.logback.core.Context value)
setContext in interface ch.qos.logback.core.spi.ContextAwarepublic ch.qos.logback.core.Context getContext()
getContext in interface ch.qos.logback.core.spi.ContextAwarepublic void addStatus(ch.qos.logback.core.status.Status status)
addStatus in interface ch.qos.logback.core.spi.ContextAwarepublic void addInfo(String msg)
addInfo in interface ch.qos.logback.core.spi.ContextAwarepublic void addInfo(String msg, Throwable ex)
addInfo in interface ch.qos.logback.core.spi.ContextAwarepublic void addWarn(String msg)
addWarn in interface ch.qos.logback.core.spi.ContextAwarepublic void addWarn(String msg, Throwable ex)
addWarn in interface ch.qos.logback.core.spi.ContextAwarepublic void addError(String msg)
addError in interface ch.qos.logback.core.spi.ContextAwareCopyright © 2020. All rights reserved.