public class CarbonDailyRollingFileAppender
extends org.apache.log4j.DailyRollingFileAppender
implements org.wso2.carbon.bootstrap.logging.LoggingBridge
| Constructor and Description |
|---|
CarbonDailyRollingFileAppender() |
| 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.
|
activateOptions, getDatePattern, setDatePatterncloseFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFilesappend, 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.DailyRollingFileAppenderloggingEvent - - the logging event without tenant informationCopyright © 2018 WSO2 Inc. All rights reserved.