Package org.eclipse.jetty.server
Class Slf4jRequestLog
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.server.AbstractNCSARequestLog
-
- org.eclipse.jetty.server.Slf4jRequestLog
-
- All Implemented Interfaces:
RequestLog,org.eclipse.jetty.util.component.LifeCycle
@ManagedObject("NCSA standard format request log to slf4j bridge") public class Slf4jRequestLog extends AbstractNCSARequestLogImplementation of NCSARequestLog where output is sent as a SLF4J INFO Log message on the named logger "org.eclipse.jetty.server.RequestLog"
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.server.AbstractNCSARequestLog
LOG
-
-
Constructor Summary
Constructors Constructor Description Slf4jRequestLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()Set up request logging and open log file.StringgetLoggerName()protected booleanisEnabled()Is logging enabledvoidsetLoggerName(String loggerName)voidwrite(String requestEntry)Write requestEntry out.-
Methods inherited from class org.eclipse.jetty.server.AbstractNCSARequestLog
doStop, getAuthentication, getIgnorePaths, getLogCookies, getLogDateFormat, getLogLatency, getLogLocale, getLogServer, getLogTimeZone, getPreferProxiedForAddress, isExtended, isLogDispatch, log, logExtended, setExtended, setIgnorePaths, setLogCookies, setLogDateFormat, setLogDispatch, setLogLatency, setLogLocale, setLogServer, setLogTimeZone, setPreferProxiedForAddress
-
-
-
-
Method Detail
-
setLoggerName
public void setLoggerName(String loggerName)
-
getLoggerName
public String getLoggerName()
-
isEnabled
protected boolean isEnabled()
Description copied from class:AbstractNCSARequestLogIs logging enabled- Specified by:
isEnabledin classAbstractNCSARequestLog- Returns:
- true if logging is enabled
-
write
public void write(String requestEntry) throws IOException
Description copied from class:AbstractNCSARequestLogWrite requestEntry out. (to disk or slf4j log)- Specified by:
writein classAbstractNCSARequestLog- Parameters:
requestEntry- the request entry- Throws:
IOException- if unable to write the entry
-
doStart
protected void doStart() throws ExceptionDescription copied from class:AbstractNCSARequestLogSet up request logging and open log file.- Overrides:
doStartin classAbstractNCSARequestLog- Throws:
Exception- See Also:
AbstractLifeCycle.doStart()
-
-