java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.PropertyDefinerBase
com.tlcsdm.core.logging.logback.IPLogDefiner
- 所有已实现的接口:
ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.PropertyDefiner
public class IPLogDefiner
extends ch.qos.logback.core.PropertyDefinerBase
将本地IP拼接到日志文件名中,以区分不同实例,避免存储到同一位置时的覆盖冲突问题
<define name="localIP" class="com.tlcsdm.core.logging.logback.IPLogDefiner"/>
<File>D:\\logs\\elk\\interface-${localIP}.log</File>
<parttern>${localIP}</parttern>
- 作者:
- unknowIfGuestInDream
-
字段概要
从类继承的字段 ch.qos.logback.core.spi.ContextAwareBase
context -
构造器概要
构造器 -
方法概要
从类继承的方法 ch.qos.logback.core.PropertyDefinerBase
booleanAsStr从类继承的方法 ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
构造器详细资料
-
IPLogDefiner
public IPLogDefiner()
-
-
方法详细资料
-
getPropertyValue
-