Class CarbonConsoleAppender
- java.lang.Object
-
- org.apache.log4j.AppenderSkeleton
-
- org.apache.log4j.WriterAppender
-
- org.apache.log4j.ConsoleAppender
-
- org.wso2.carbon.utils.logging.appenders.CarbonConsoleAppender
-
- All Implemented Interfaces:
org.apache.log4j.Appender,org.apache.log4j.spi.OptionHandler,LoggingBridge
@Deprecated public class CarbonConsoleAppender extends org.apache.log4j.ConsoleAppender implements LoggingBridge
Deprecated.Configuration is done in log4j2.properties file.
-
-
Constructor Summary
Constructors Constructor Description CarbonConsoleAppender()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetMaskingPatternFile()Deprecated.voidpush(LogRecord record)Deprecated.voidsetMaskingPatternFile(String maskingPatternFile)Deprecated.Set the maskingPatternFile parameter.protected voidsubAppend(org.apache.log4j.spi.LoggingEvent loggingEvent)Deprecated.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.-
Methods inherited from class org.apache.log4j.ConsoleAppender
activateOptions, closeWriter, getFollow, getTarget, setFollow, setTarget
-
Methods inherited from class org.apache.log4j.WriterAppender
append, checkEntryConditions, close, createWriter, getEncoding, getImmediateFlush, requiresLayout, reset, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeader
-
-
-
-
Method Detail
-
push
public void push(LogRecord record)
Deprecated.- Specified by:
pushin interfaceLoggingBridge
-
subAppend
protected void subAppend(org.apache.log4j.spi.LoggingEvent loggingEvent)
Deprecated.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. The passed TenantAwareLoggingEvent is later used in TenantAwareNamedPatternConverter to extract the required tenant information as well as other logging information.- Overrides:
subAppendin classorg.apache.log4j.WriterAppender- Parameters:
loggingEvent- - the logging event without tenant information
-
getMaskingPatternFile
public String getMaskingPatternFile()
Deprecated.
-
setMaskingPatternFile
public void setMaskingPatternFile(String maskingPatternFile)
Deprecated.Set the maskingPatternFile parameter. In this method, masking patterns will be loaded from the configured file.- Parameters:
maskingPatternFile- : The absolute path of the masking pattern file.
-
-