# Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd # # Licensed 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. # log4j.rootCategory=debug,R,E,stdout #### \u7b2c\u4e00\u4e2a appender\u5c06log\u5199\u5230\u5c4f\u5e55 log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=[%p] [%d] [%c] - [%m]%n log4j.appender.stdout.Threshold=INFO #### \u7b2c\u4e8c\u4e2a appender \u5c06\u5168\u90e8log\u5199\u5230\u6587\u4ef6 log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=../log/monitor.log log4j.appender.R.MaxFileSize=20MB log4j.appender.R.MaxBackupIndex=50 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=[%p] [%d] [%t] [%c] - [%m]%n log4j.appender.R.Threshold=INFO #### \u7b2c\u4e09\u4e2a appender \u5c06\u9519\u8beflog\u5199\u5230\u6587\u4ef6 log4j.appender.E=org.apache.log4j.RollingFileAppender log4j.appender.E.File=../log/error.log log4j.appender.E.MaxFileSize=20MB log4j.appender.E.MaxBackupIndex=10 log4j.appender.E.layout=org.apache.log4j.PatternLayout log4j.appender.E.layout.ConversionPattern=[%p] [%d] [%t] [%c] - [%m]%n log4j.appender.E.Threshold=ERROR