1 # Copyright 2018 Huawei Technologies Co., Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 log4j.rootLogger=ERROR, file
16 log4j.logger.org.onap.cli=ERROR, file
17 log4j.logger.org.open.infc.grpc.server=INFO, file, stdout
18 # Direct log messages to stdout
19 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
20 log4j.appender.stdout.Target=System.out
21 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
22 log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
24 # Redirect log messages to a log file, support file rolling.
25 log4j.appender.file=org.apache.log4j.RollingFileAppender
26 log4j.appender.file.File=${OPEN_CLI_HOME}/logs/open-cli.log
27 log4j.appender.file.MaxFileSize=5MB
28 log4j.appender.file.MaxBackupIndex=10
29 log4j.appender.file.layout=org.apache.log4j.PatternLayout
30 log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n