Package org.eclipse.jetty.server
Class Slf4jRequestLog
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.server.AbstractNCSARequestLog
-
- org.eclipse.jetty.server.Slf4jRequestLog
-
- All Implemented Interfaces:
RequestLog
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
@Deprecated @ManagedObject("NCSA standard format request log to slf4j bridge") public class Slf4jRequestLog extends AbstractNCSARequestLog
Deprecated.useCustomRequestLog
given format stringCustomRequestLog.EXTENDED_NCSA_FORMAT
with anSlf4jRequestLogWriter
Implementation of NCSARequestLog where output is sent as a SLF4J INFO Log message on the named logger "org.eclipse.jetty.server.RequestLog"
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.RequestLog
RequestLog.Collection, RequestLog.Writer
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.server.AbstractNCSARequestLog
LOG
-
-
Constructor Summary
Constructors Constructor Description Slf4jRequestLog()
Deprecated.Slf4jRequestLog(Slf4jRequestLogWriter writer)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getLoggerName()
Deprecated.protected boolean
isEnabled()
Deprecated.Is logging enabledvoid
setLoggerName(java.lang.String loggerName)
Deprecated.void
write(java.lang.String requestEntry)
Deprecated.Write requestEntry out.-
Methods inherited from class org.eclipse.jetty.server.AbstractNCSARequestLog
doStart, doStop, getAuthentication, getIgnorePaths, getLogCookies, getLogDateFormat, getLogLatency, getLogLocale, getLogServer, getLogTimeZone, getPreferProxiedForAddress, isExtended, isLogDispatch, log, logExtended, setExtended, setIgnorePaths, setLogCookies, setLogDateFormat, setLogDispatch, setLogLatency, setLogLocale, setLogServer, setLogTimeZone, setPreferProxiedForAddress
-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
-
-
-
Constructor Detail
-
Slf4jRequestLog
public Slf4jRequestLog()
Deprecated.
-
Slf4jRequestLog
public Slf4jRequestLog(Slf4jRequestLogWriter writer)
Deprecated.
-
-
Method Detail
-
setLoggerName
public void setLoggerName(java.lang.String loggerName)
Deprecated.
-
getLoggerName
public java.lang.String getLoggerName()
Deprecated.
-
isEnabled
protected boolean isEnabled()
Deprecated.Description copied from class:AbstractNCSARequestLog
Is logging enabled- Overrides:
isEnabled
in classAbstractNCSARequestLog
- Returns:
- true if logging is enabled
-
write
public void write(java.lang.String requestEntry) throws java.io.IOException
Deprecated.Description copied from class:AbstractNCSARequestLog
Write requestEntry out. (to disk or slf4j log)- Overrides:
write
in classAbstractNCSARequestLog
- Parameters:
requestEntry
- the request entry- Throws:
java.io.IOException
- if unable to write the entry
-
-