public class FileServiceLog extends DefaultServiceLog implements Closeable
DefaultServiceLog that writes to configured file - useful for integration tests but also
for Karaf if you don't want to miss single log message.levelsFQCN, LEVEL_AUDIT, LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_NONE, LEVEL_TRACE, LEVEL_WARNING| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
output(String levelName,
String message,
Throwable t)
Outputs logging event with preconfigured layout.
|
audit, audit, audit, audit, audit, audit, audit, audit, audit, audit, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fqdebug, fqdebug, fqdebug, fqdebug, fqerror, fqerror, fqerror, fqerror, fqfatal, fqfatal, fqfatal, fqfatal, fqinfo, fqinfo, fqinfo, fqinfo, fqtrace, fqtrace, fqtrace, fqtrace, fqwarn, fqwarn, fqwarn, fqwarn, getLogLevel, getName, getPaxContext, getPaxLogLevel, getStaticLogLevel, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isErrorEnabled, isErrorEnabled, isFatalEnabled, isFatalEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, output, setLogLevel, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAuditEnabled, isAuditEnabledprotected void output(String levelName, String message, Throwable t)
DefaultServiceLogoutput in class DefaultServiceLogpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.