public class CarbonRollingFileAppender
extends org.apache.log4j.RollingFileAppender
implements org.wso2.carbon.bootstrap.logging.LoggingBridge
| Constructor and Description |
|---|
CarbonRollingFileAppender() |
| Modifier and Type | Method and Description |
|---|---|
void |
push(LogRecord record) |
protected void |
subAppend(org.apache.log4j.spi.LoggingEvent loggingEvent)
This overriden method takes a Logging event, get it wrapped with tenant information taken
from PrivilegedCarbonContext (by utilizing LoggingUtils.getTenantAwareLogEvent) and passes
the TenantAwareLoggingEvent to super class.
|
getMaxBackupIndex, getMaximumFileSize, rollOver, setFile, setMaxBackupIndex, setMaxFileSize, setMaximumFileSize, setQWForFilesactivateOptions, closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFileappend, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeaderpublic void push(LogRecord record)
push in interface org.wso2.carbon.bootstrap.logging.LoggingBridgeprotected void subAppend(org.apache.log4j.spi.LoggingEvent loggingEvent)
subAppend in class org.apache.log4j.RollingFileAppenderloggingEvent - - the logging event without tenant informationCopyright © 2019 WSO2 Inc. All Rights Reserved.