public abstract class AbstractWebFormattingConverter
extends ch.qos.logback.classic.pattern.ClassicConverter
A ClassicConverter implementation that can produce web information based on a
HttpServletRequest. This class is abstract, subclasses must implement
getRequest(). If no request is available it produces an empty string. This class does
not depend on wicket so in theory subclasses can be used in non-wicket web applications too.
Message format:
$method $requestUrl?$queryString $sessionId $remoteUser $remoteAddr:$remotePort $localAddr:$localPort $x-forwarded-for $user-agent
| Modifier and Type | Field and Description |
|---|---|
static String |
RA_WEB_INFO
Used as request attribute key to cache web information String for a request.
|
| Constructor and Description |
|---|
AbstractWebFormattingConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
convert(ch.qos.logback.classic.spi.ILoggingEvent event) |
protected abstract javax.servlet.http.HttpServletRequest |
getRequest() |
protected String |
getWebString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, start, stoppublic static final String RA_WEB_INFO
public String convert(ch.qos.logback.classic.spi.ILoggingEvent event)
convert in class ch.qos.logback.core.pattern.Converter<ch.qos.logback.classic.spi.ILoggingEvent>protected String getWebString()
protected abstract javax.servlet.http.HttpServletRequest getRequest()
Copyright © 2015. All rights reserved.