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.
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 © 2016 Apache NiFi Project. All rights reserved.