1<?xml version="1.0" encoding="UTF-8"?> 2 3<!-- 4 Copyright (c) 2021-2022 Huawei Device Co., Ltd. 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<Configuration status="WARN" monitorInterval="30"> 19 <Properties> 20 <Property name="LOG_HOME">../logs</Property> 21 <property name="ERROR_LOG_FILE_NAME">../logs</property> 22 <property name="WARN_LOG_FILE_NAME">../logs</property> 23 24 <property name="FULL_PATTERN">%d{yyyy-MM-dd HH:mm:ss.SSS} [%t-%L] %-5level %logger{36} - %msg%n</property> 25 <property name="PATTERN">%d{MM-dd HH:mm:ss} %-5level - %msg%n</property> 26 </Properties> 27 <Appenders> 28 <Console name="Console" target="SYSTEM_OUT"> 29 <ThresholdFilter level="warn" onMatch="DENY" 30 onMismatch="ACCEPT"/> 31 <PatternLayout 32 pattern="${PATTERN}"/> 33 </Console> 34 <Console name="Ide" target="SYSTEM_ERR"> 35 <ThresholdFilter level="warn" onMatch="ACCEPT" 36 onMismatch="DENY"/> 37 <PatternLayout 38 pattern="${PATTERN}"/> 39 </Console> 40 </Appenders> 41 <Loggers> 42 <logger name="org.jboss.netty" level="warn"/> 43 <logger name="org.apache.http" level="warn"/> 44 <root level="info"> 45 <appender-ref ref="Console"/> 46 <appender-ref ref="Ide"/> 47 </root> 48 </Loggers> 49</Configuration>