All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oceanbase-table-client.log.log4j2.log-conf.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<configuration status="OFF">

    <Properties>
        <!-- 将系统属性进行一次本地转换 -->
        <Property name="LOG_LEVEL">${sys:logging.level.oceanbase-table-client}</Property>
        <Property name="LOG_PATH">${sys:logging.path.oceanbase-table-client}</Property>
        <Property name="FILE_ENCODING">${sys:file.encoding}</Property>
    </Properties>

    <Appenders>
        <RollingFile name="OCEANBASE-TABLE-CLIENT-APPENDER"
                     fileName="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client.log" append="true"
                     filePattern="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client.log.%d{yyyy-MM-dd}">
            <ThresholdFilter level="${LOG_LEVEL}" onMatch="ACCEPT" onMismatch="DENY"/>
            <PatternLayout charset="${FILE_ENCODING}">
                <pattern>%d-%m%n</pattern>
            </PatternLayout>
            <Policies>
                <!-- 按天分日志文件:重要的是 filePattern 配置到按照天 -->
                <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
            </Policies>
        </RollingFile>

        <RollingFile name="OCEANBASE-TABLE-CLIENT-RUNTIME-APPENDER"
                     fileName="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client-runtime.log" append="true"
                     filePattern="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client-runtime.log.%d{yyyy-MM-dd}">
            <ThresholdFilter level="${LOG_LEVEL}" onMatch="ACCEPT" onMismatch="DENY"/>
            <PatternLayout charset="${FILE_ENCODING}">
                <pattern>%d-%m%n</pattern>
            </PatternLayout>
            <Policies>
                <!-- 按天分日志文件:重要的是 filePattern 配置到按照天 -->
                <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
            </Policies>
        </RollingFile>

        <RollingFile name="OCEANBASE-TABLE-CLIENT-MONITOR-APPENDER"
                     fileName="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client-monitor.log" append="true"
                     filePattern="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client-monitor.log.%d{yyyy-MM-dd}">
            <ThresholdFilter level="${LOG_LEVEL}" onMatch="ACCEPT" onMismatch="DENY"/>
            <PatternLayout charset="${FILE_ENCODING}">
                <pattern>%d-%m%n</pattern>
            </PatternLayout>
            <Policies>
                <!-- 按天分日志文件:重要的是 filePattern 配置到按照天 -->
                <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
            </Policies>
        </RollingFile>

        <RollingFile name="OCEANBASE-TABLE-CLIENT-BOOT-APPENDER"
                     fileName="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client-boot.log" append="true"
                     filePattern="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client-boot.log.%d{yyyy-MM-dd}">
            <ThresholdFilter level="${LOG_LEVEL}" onMatch="ACCEPT" onMismatch="DENY"/>
            <PatternLayout charset="${FILE_ENCODING}">
                <pattern>%d-%m%n</pattern>
            </PatternLayout>
            <Policies>
                <!-- 按天分日志文件:重要的是 filePattern 配置到按照天 -->
                <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
            </Policies>
        </RollingFile>

        <RollingFile name="OCEANBASE-TABLE-CLIENT-DIRECT-APPENDER"
                     fileName="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client-direct.log" append="true"
                     filePattern="${LOG_PATH}/oceanbase-table-client/oceanbase-table-client-direct.log.%d{yyyy-MM-dd}">
            <ThresholdFilter level="${LOG_LEVEL}" onMatch="ACCEPT" onMismatch="DENY"/>
            <PatternLayout charset="${FILE_ENCODING}">
                <pattern>%d-%m%n</pattern>
            </PatternLayout>
            <Policies>
                <!-- 按天分日志文件:重要的是 filePattern 配置到按照天 -->
                <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
            </Policies>
        </RollingFile>
    </Appenders>

    <Loggers>
        <AsyncLogger name="com.alipay.oceanbase.rpc" level="${LOG_LEVEL}" additivity="false">
            <AppenderRef ref="OCEANBASE-TABLE-CLIENT-APPENDER"/>
        </AsyncLogger>

        <AsyncLogger name="OBKV-BOOT" level="${LOG_LEVEL}" additivity="false">
            <AppenderRef ref="OCEANBASE-TABLE-CLIENT-BOOT-APPENDER"/>
        </AsyncLogger>

        <AsyncLogger name="OBKV-MONITOR" level="${LOG_LEVEL}" additivity="false">
            <AppenderRef ref="OCEANBASE-TABLE-CLIENT-MONITOR-APPENDER"/>
        </AsyncLogger>

        <AsyncLogger name="OBKV-RUNTIME" level="${LOG_LEVEL}" additivity="false">
            <AppenderRef ref="OCEANBASE-TABLE-CLIENT-RUNTIME-APPENDER"/>
        </AsyncLogger>

        <AsyncLogger name="OBKV-DIRECT" level="${LOG_LEVEL}" additivity="false">
            <AppenderRef ref="OCEANBASE-TABLE-CLIENT-DIRECT-APPENDER"/>
        </AsyncLogger>
    </Loggers>

</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy