public class LogbackAppenderAccessor extends AbstractLogDestination
logger| Constructor and Description |
|---|
LogbackAppenderAccessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding()
Gets the encoding of the file.
|
File |
getFile()
Returns the file that this appender writes to by accessing the
file bean property of
the appender. |
String |
getIndex()
Returns the name of this appender.
|
String |
getLevel()
Gets the level of the associated logger.
|
LogbackLoggerAccessor |
getLoggerAccessor()
Gets the logger accessor.
|
String |
getLogType()
Returns the log type, to distinguish logback appenders from other types like log4j appenders or
jdk handlers.
|
String |
getName()
Gets the name.
|
String[] |
getValidLevels()
Returns the valid log level names.
|
boolean |
isContext()
Checks if is context.
|
boolean |
isRoot()
Checks if is root.
|
void |
setLoggerAccessor(LogbackLoggerAccessor loggerAccessor)
Sets the logger accessor.
|
getConversionPattern, getLastModified, getSize, getStdoutFilegetApplication, getProperty, getProperty, getTarget, getTargetClass, invokeMethod, setApplication, setTargetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplication, getTargetClasspublic LogbackLoggerAccessor getLoggerAccessor()
public void setLoggerAccessor(LogbackLoggerAccessor loggerAccessor)
loggerAccessor - the new logger accessorpublic boolean isContext()
LogDestinationisContext in interface LogDestinationisContext in class AbstractLogDestinationpublic boolean isRoot()
LogDestinationisRoot in interface LogDestinationisRoot in class AbstractLogDestinationpublic String getName()
LogDestinationpublic String getLogType()
public String getIndex()
getIndex in interface LogDestinationgetIndex in class AbstractLogDestinationpublic File getFile()
file bean property of
the appender.
If no such property exists, we assume the appender to write to stdout or stderr so the output will be contained in catalina.out.
getFile in interface LogDestinationgetFile in class AbstractLogDestinationpublic String getEncoding()
LogDestinationgetEncoding in interface LogDestinationgetEncoding in class AbstractLogDestinationpublic String getLevel()
getLevel in interface LogDestinationgetLevel in class AbstractLogDestinationpublic String[] getValidLevels()
Note that Logback has no FATAL level.
getValidLevels in interface LogDestinationgetValidLevels in class AbstractLogDestinationCopyright © 2009–2020 psi-probe. All rights reserved.