public interface ComponentLog
The ComponentLog provides a mechanism to ensure that all NiFi components are logging and reporting information in a consistent way. When messages are logged to the ComponentLog, each message has the following characteristics:
toString()
of the component is automatically prepended to
the message so that it is clear which component is providing the information.
This is important, since a single component may have many different instances
within the same NiFi instance.
toString()
of
the Throwable; in addition, if the component's logger is set to DEBUG level
via the logback configuration, the Stacktrace will also be logged. This
provides a mechanism to easily enable stacktraces in the logs when they are
desired without filling the logs with unneeded stack traces for messages that
end up occurring often.
Modifier and Type | Method and Description |
---|---|
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() |
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) |
void warn(String msg)
void trace(String msg)
boolean isWarnEnabled()
boolean isTraceEnabled()
boolean isInfoEnabled()
boolean isErrorEnabled()
boolean isDebugEnabled()
void info(String msg)
String getName()
void error(String msg)
void debug(String msg)
Copyright © 2015 Apache NiFi Project. All rights reserved.