Class 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.
    • Field Summary

      • Fields inherited from class org.apache.log4j.ConsoleAppender

        SYSTEM_ERR, SYSTEM_OUT, target
      • Fields inherited from class org.apache.log4j.WriterAppender

        encoding, immediateFlush, qw
      • Fields inherited from class org.apache.log4j.AppenderSkeleton

        closed, errorHandler, headFilter, layout, name, tailFilter, threshold
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      String getMaskingPatternFile()
      Deprecated.
       
      void push​(LogRecord record)
      Deprecated.
       
      void setMaskingPatternFile​(String maskingPatternFile)
      Deprecated.
      Set the maskingPatternFile parameter.
      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.
      • 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
      • Methods inherited from class org.apache.log4j.AppenderSkeleton

        addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold
    • Constructor Detail

      • CarbonConsoleAppender

        public CarbonConsoleAppender()
        Deprecated.
    • Method Detail

      • 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:
        subAppend in class org.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.