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, setDatePattern
closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFiles
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeader
public void push(LogRecord record)
push
in interface org.wso2.carbon.bootstrap.logging.LoggingBridge
protected void subAppend(org.apache.log4j.spi.LoggingEvent loggingEvent)
subAppend
in class org.apache.log4j.DailyRollingFileAppender
loggingEvent
- - the logging event without tenant informationCopyright © 2016 WSO2 Inc. All rights reserved.