public class CarbonConsoleAppender
extends org.apache.log4j.ConsoleAppender
implements org.wso2.carbon.bootstrap.logging.LoggingBridge
| Constructor and Description |
|---|
CarbonConsoleAppender() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMaskingPatternFile() |
void |
push(LogRecord record) |
void |
setMaskingPatternFile(String maskingPatternFile)
Set the maskingPatternFile parameter.
|
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, closeWriter, getFollow, getTarget, setFollow, setTargetappend, checkEntryConditions, close, createWriter, getEncoding, getImmediateFlush, requiresLayout, reset, 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.WriterAppenderloggingEvent - - the logging event without tenant informationpublic String getMaskingPatternFile()
public void setMaskingPatternFile(String maskingPatternFile)
maskingPatternFile - : The absolute path of the masking pattern file.Copyright © 2019 WSO2 Inc. All Rights Reserved.