类 LevelRemappingAppender
- java.lang.Object
- ch.qos.logback.core.spi.ContextAwareBase
- ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
- org.springframework.boot.logging.logback.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 remapILoggingEvent
Level
s as they are written.
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
LevelRemappingAppender.AppendableLogger
Simple wrapper around a logger that can have events appended.
构造器概要
构造器 构造器 说明 LevelRemappingAppender()
Create a newLevelRemappingAppender
.LevelRemappingAppender(String destinationLogger)
Create a newLevelRemappingAppender
with a specific destination logger.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
append(ch.qos.logback.classic.spi.ILoggingEvent event)
protected LevelRemappingAppender.AppendableLogger
getLogger(String name)
void
setDestinationLogger(String destinationLogger)
Sets the destination logger that will be used to send remapped events.void
setRemapLevels(String remapLevels)
Set the remapped level.从类继承的方法 ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toString
从类继承的方法 ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
构造器详细资料
LevelRemappingAppender
public LevelRemappingAppender()
Create a newLevelRemappingAppender
.
LevelRemappingAppender
public LevelRemappingAppender(String destinationLogger)
Create a newLevelRemappingAppender
with a specific destination logger.- 参数:
destinationLogger
- the destination logger
方法详细资料
append
protected void append(ch.qos.logback.classic.spi.ILoggingEvent event)
- 指定者:
append
在类中ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
getLogger
protected LevelRemappingAppender.AppendableLogger getLogger(String name)
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".