类 LevelRemappingAppender

  • 所有已实现的接口:
    ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent>, ch.qos.logback.core.spi.LifeCycle

    public class LevelRemappingAppender
    extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
    Appender that can remap ILoggingEventLevels as they are written.
    另请参阅:
    setRemapLevels(String), setDestinationLogger(String)
    • 方法详细资料

      • append

        protected void append​(ch.qos.logback.classic.spi.ILoggingEvent event)
        指定者:
        append 在类中 ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
      • setDestinationLogger

        public void setDestinationLogger​(String destinationLogger)
        Sets the destination logger that will be used to send remapped events. If not specified the root logger is used.
        参数:
        destinationLogger - the destinationLogger name
      • setRemapLevels

        public void setRemapLevels​(String remapLevels)
        Set the remapped level.
        参数:
        remapLevels - Comma separated String of remapped levels in the form "FROM->TO". For example, "DEBUG->TRACE,ERROR->WARN".