public class SimpleProcessLogger extends Object implements ComponentLog
| Modifier and Type | Field and Description |
|---|---|
private Object |
component |
private org.slf4j.Logger |
logger |
private LogRepository |
logRepository |
| Constructor and Description |
|---|
SimpleProcessLogger(String componentId,
Object component) |
| Modifier and Type | Method and Description |
|---|---|
private Object[] |
addProcessor(Object[] originalArgs) |
private Object[] |
addProcessorAndThrowable(Object[] os,
Throwable t,
boolean includeStackTrace) |
void |
debug(String msg) |
void |
debug(String msg,
Object[] os) |
void |
debug(String msg,
Object[] os,
Throwable t) |
void |
debug(String msg,
Throwable t) |
void |
error(String msg) |
void |
error(String msg,
Object[] os) |
void |
error(String msg,
Object[] os,
Throwable t) |
void |
error(String msg,
Throwable t) |
String |
getName() |
void |
info(String msg) |
void |
info(String msg,
Object[] os) |
void |
info(String msg,
Object[] os,
Throwable t) |
void |
info(String msg,
Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
private boolean |
lastArgIsException(Object[] os) |
void |
log(LogLevel level,
String msg) |
void |
log(LogLevel level,
String msg,
Object[] os) |
void |
log(LogLevel level,
String msg,
Object[] os,
Throwable t) |
void |
log(LogLevel level,
String msg,
Throwable t) |
private Object[] |
prependToArgs(Object[] originalArgs,
Object... toAdd) |
void |
trace(String msg) |
void |
trace(String msg,
Object[] os) |
void |
trace(String msg,
Object[] os,
Throwable t) |
void |
trace(String msg,
Throwable t) |
void |
warn(String msg) |
void |
warn(String msg,
Object[] os) |
void |
warn(String msg,
Object[] os,
Throwable t) |
void |
warn(String msg,
Throwable t) |
private final org.slf4j.Logger logger
private final LogRepository logRepository
private final Object component
private boolean lastArgIsException(Object[] os)
public void warn(String msg, Throwable t)
warn in interface ComponentLogpublic void warn(String msg, Object[] os)
warn in interface ComponentLogpublic void warn(String msg, Object[] os, Throwable t)
warn in interface ComponentLogpublic void warn(String msg)
warn in interface ComponentLogpublic void trace(String msg, Throwable t)
trace in interface ComponentLogpublic void trace(String msg, Object[] os)
trace in interface ComponentLogpublic void trace(String msg)
trace in interface ComponentLogpublic void trace(String msg, Object[] os, Throwable t)
trace in interface ComponentLogpublic boolean isTraceEnabled()
isTraceEnabled in interface ComponentLogpublic boolean isDebugEnabled()
isDebugEnabled in interface ComponentLogpublic boolean isInfoEnabled()
isInfoEnabled in interface ComponentLogpublic boolean isWarnEnabled()
isWarnEnabled in interface ComponentLogpublic boolean isErrorEnabled()
isErrorEnabled in interface ComponentLogpublic void info(String msg, Throwable t)
info in interface ComponentLogpublic void info(String msg, Object[] os)
info in interface ComponentLogpublic void info(String msg)
info in interface ComponentLogpublic void info(String msg, Object[] os, Throwable t)
info in interface ComponentLogpublic String getName()
getName in interface ComponentLogpublic void error(String msg, Throwable t)
error in interface ComponentLogpublic void error(String msg, Object[] os)
error in interface ComponentLogpublic void error(String msg)
error in interface ComponentLogpublic void error(String msg, Object[] os, Throwable t)
error in interface ComponentLogprivate Object[] addProcessorAndThrowable(Object[] os, Throwable t, boolean includeStackTrace)
public void debug(String msg, Throwable t)
debug in interface ComponentLogpublic void debug(String msg, Object[] os)
debug in interface ComponentLogpublic void debug(String msg, Object[] os, Throwable t)
debug in interface ComponentLogpublic void debug(String msg)
debug in interface ComponentLogpublic void log(LogLevel level, String msg, Throwable t)
log in interface ComponentLogpublic void log(LogLevel level, String msg, Object[] os)
log in interface ComponentLogpublic void log(LogLevel level, String msg)
log in interface ComponentLogCopyright © 2021 Apache NiFi Project. All rights reserved.