Package org.apache.nifi.processor
Class SimpleProcessLogger
java.lang.Object
org.apache.nifi.processor.SimpleProcessLogger
- All Implemented Interfaces:
ComponentLog
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final Objectprivate final org.slf4j.Loggerprivate final LoggingContextprivate final LogRepositoryprivate static final Throwable -
Constructor Summary
ConstructorsConstructorDescriptionSimpleProcessLogger(Object component, LogRepository logRepository, LoggingContext loggingContext) SimpleProcessLogger(String componentId, Object component, LoggingContext loggingContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoiddebug(LogMessage logMessage) voidvoidvoidvoiderror(LogMessage logMessage) private ThrowablefindLastThrowable(Object[] arguments) private Stringprivate StringgetCausesMessage(String message) private Object[]getComponentAndCauses(Throwable throwable) private StringgetComponentMessage(String message) private Stringprivate StringgetName()private Object[]getRepositoryArguments(Throwable throwable) Get arguments for Log Repository including a summary of Throwable causes when Throwable is foundvoidvoidvoidvoidinfo(LogMessage logMessage) private Object[]insertComponent(Object[] originalArgs) booleanbooleanbooleanbooleanbooleanvoidvoidvoidvoidlog(LogMessage message) private voidprivate Object[]private Object[]setFormattedThrowable(Object[] arguments, Throwable throwable) voidvoidvoidvoidtrace(LogMessage logMessage) voidvoidvoidvoidwarn(LogMessage logMessage) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.nifi.logging.ComponentLog
log
-
Field Details
-
CAUSED_BY
-
NULL_THROWABLE
-
logger
private final org.slf4j.Logger logger -
logRepository
-
component
-
loggingContext
-
-
Constructor Details
-
SimpleProcessLogger
-
SimpleProcessLogger
public SimpleProcessLogger(Object component, LogRepository logRepository, LoggingContext loggingContext)
-
-
Method Details
-
warn
- Specified by:
warnin interfaceComponentLog
-
warn
- Specified by:
warnin interfaceComponentLog
-
warn
- Specified by:
warnin interfaceComponentLog
-
warn
- Specified by:
warnin interfaceComponentLog
-
trace
- Specified by:
tracein interfaceComponentLog
-
trace
- Specified by:
tracein interfaceComponentLog
-
trace
- Specified by:
tracein interfaceComponentLog
-
trace
- Specified by:
tracein interfaceComponentLog
-
isTraceEnabled
public boolean isTraceEnabled()- Specified by:
isTraceEnabledin interfaceComponentLog
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceComponentLog
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceComponentLog
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceComponentLog
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceComponentLog
-
info
- Specified by:
infoin interfaceComponentLog
-
info
- Specified by:
infoin interfaceComponentLog
-
info
- Specified by:
infoin interfaceComponentLog
-
info
- Specified by:
infoin interfaceComponentLog
-
getName
- Specified by:
getNamein interfaceComponentLog
-
error
- Specified by:
errorin interfaceComponentLog
-
error
- Specified by:
errorin interfaceComponentLog
-
error
- Specified by:
errorin interfaceComponentLog
-
error
- Specified by:
errorin interfaceComponentLog
-
debug
- Specified by:
debugin interfaceComponentLog
-
debug
- Specified by:
debugin interfaceComponentLog
-
debug
- Specified by:
debugin interfaceComponentLog
-
debug
- Specified by:
debugin interfaceComponentLog
-
log
- Specified by:
login interfaceComponentLog
-
log
- Specified by:
login interfaceComponentLog
-
log
- Specified by:
login interfaceComponentLog
-
log
- Specified by:
login interfaceComponentLog
-
getRepositoryArguments
Get arguments for Log Repository including a summary of Throwable causes when Throwable is found- Parameters:
throwable- Throwable instance or null- Returns:
- Arguments containing the component or the component and summary of Throwable causes
-
getCausesMessage
-
getComponentMessage
-
getComponentAndCauses
-
getCauses
-
insertComponent
-
setCauses
-
setFormattedThrowable
-
findLastThrowable
-
getDiscriminatorKey
-
getLogFileSuffix
-
log
-