Class FileServiceLog
- java.lang.Object
-
- org.ops4j.pax.logging.spi.support.DefaultServiceLog
-
- org.ops4j.pax.logging.spi.support.FileServiceLog
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PaxLogger,org.osgi.service.log.FormatterLogger,org.osgi.service.log.Logger
public class FileServiceLog extends DefaultServiceLog implements Closeable
DefaultServiceLogthat writes to configured file - useful for integration tests but also for Karaf if you don't want to miss single log message.
-
-
Field Summary
-
Fields inherited from class org.ops4j.pax.logging.spi.support.DefaultServiceLog
levels
-
Fields inherited from interface org.ops4j.pax.logging.PaxLogger
FQCN, LEVEL_AUDIT, LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_NONE, LEVEL_TRACE, LEVEL_WARNING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidoutput(String levelName, String message, Throwable t)Outputs logging event with preconfigured layout.-
Methods inherited from class org.ops4j.pax.logging.spi.support.DefaultServiceLog
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, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ops4j.pax.logging.PaxLogger
isAuditEnabled, isAuditEnabled
-
-
-
-
Method Detail
-
output
protected void output(String levelName, String message, Throwable t)
Description copied from class:DefaultServiceLogOutputs logging event with preconfigured layout.- Overrides:
outputin classDefaultServiceLog
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-