| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, |
| ~ software distributed under the License is distributed on an |
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ~ KIND, either express or implied. See the License for the |
| ~ specific language governing permissions and limitations |
| ~ under the License. |
| --> |
| |
| <configuration status="ERROR"> |
| |
| <Properties> |
| <property name="app">IoTDB-Workbench</property> |
| <property name="log.root.level">INFO</property> |
| <property name="log.home">/data/applogs/app-test</property> |
| <property name="log.default.pattern">%-d{yyyy-MM-dd HH:mm:ss.SSS} [%p] [${app}] %l %m%n</property> |
| <property name="log.stats.pattern">%m%n</property> |
| </Properties> |
| |
| <appenders> |
| <Console name="STDOUT" target="SYSTEM_OUT"> |
| <PatternLayout> |
| <Pattern>${log.default.pattern}</Pattern> |
| </PatternLayout> |
| </Console> |
| |
| <RollingFile name="ROLLING_DEBUG" fileName="${log.home}/${app}_debug.log" |
| filePattern="${log.home}/debug.log.%i"> |
| <PatternLayout> |
| <Pattern>${log.default.pattern}</Pattern> |
| </PatternLayout> |
| <Policies> |
| <SizeBasedTriggeringPolicy size="100 MB" /> |
| </Policies> |
| <DefaultRolloverStrategy max="10"/> |
| <!--<DirectWriteRolloverStrategy maxFiles="10"/>--> |
| <Filters> |
| <ThresholdFilter level="DEBUG" onMatch="ACCEPT"/> |
| </Filters> |
| </RollingFile> |
| |
| <RollingFile name="ROLLING_INFO" fileName="${log.home}/${app}_info.log" |
| filePattern="${log.home}/info.log.%i"> |
| <PatternLayout> |
| <Pattern>${log.default.pattern}</Pattern> |
| </PatternLayout> |
| <Policies> |
| <SizeBasedTriggeringPolicy size="100 MB" /> |
| </Policies> |
| <DefaultRolloverStrategy max="10"/> |
| <Filters> |
| <ThresholdFilter level="WARN" onMatch="DENY" onMismatch="NEUTRAL"/> |
| <ThresholdFilter level="INFO" onMatch="ACCEPT"/> |
| </Filters> |
| </RollingFile> |
| |
| <RollingFile name="ROLLING_WARN" fileName="${log.home}/${app}_warn.log" |
| filePattern="${log.home}/warn.log.%i"> |
| <PatternLayout> |
| <Pattern>${log.default.pattern}</Pattern> |
| </PatternLayout> |
| <Policies> |
| <SizeBasedTriggeringPolicy size="100 MB" /> |
| </Policies> |
| <DefaultRolloverStrategy max="10"/> |
| <Filters> |
| <ThresholdFilter level="ERROR" onMatch="DENY" onMismatch="NEUTRAL"/> |
| <ThresholdFilter level="WARN" onMatch="ACCEPT"/> |
| </Filters> |
| </RollingFile> |
| |
| <RollingFile name="ROLLING_ERROR" fileName="${log.home}/${app}_error.log" |
| filePattern="${log.home}/error.log.%i"> |
| <PatternLayout> |
| <Pattern>${log.default.pattern}</Pattern> |
| </PatternLayout> |
| <Policies> |
| <SizeBasedTriggeringPolicy size="100 MB" /> |
| </Policies> |
| <DefaultRolloverStrategy max="10"/> |
| <!--<DirectWriteRolloverStrategy maxFiles="10"/>--> |
| <Filters> |
| <ThresholdFilter level="ERROR" onMatch="ACCEPT"/> |
| </Filters> |
| </RollingFile> |
| |
| |
| |
| </appenders> |
| |
| <loggers> |
| <!--level: ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF --> |
| <Root level="${log.root.level}"> |
| <AppenderRef ref="STDOUT"/> |
| <AppenderRef ref="ROLLING_INFO"/> |
| <AppenderRef ref="ROLLING_WARN"/> |
| <AppenderRef ref="ROLLING_ERROR"/> |
| <!--<AppenderRef ref="ROLLING_DEBUG"/>--> |
| </Root> |
| |
| |
| <!--<logger name="com.alibaba" level="ERROR"/>--> |
| <!--<logger name="org" level="ERROR"/>--> |
| |
| </loggers> |
| |
| </configuration> |
| |