Migrate to apache common logging
[cli.git] / profiles / snmp / src / test / resources / log4j2.properties
1 # Copyright 2020 Huawei Technologies Co., Ltd.
2 #
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
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 # By default, log4j2 will look for a configuration file named log4j2.xml on the classpath.
16 # reference: https://logging.apache.org/log4j/2.x/faq.html#troubleshooting
17
18 appenders =stdout
19
20 rootLogger.level=ERROR
21 rootLogger.appenderRefs=stdout
22 rootLogger.appenderRef.stdout.ref=STDOUT
23
24 loggers=cli
25
26 logger.cli.name = org.onap.cli
27 logger.cli.level=DEBUG
28 logger.cli.appenderRef.stdout.ref=STDOUT
29
30 # Direct log messages to stdout
31 appender.stdout.type=Console
32 appender.stdout.name=STDOUT
33 appender.stdout.target=SYSTEM_OUT
34 appender.stdout.layout.type=PatternLayout
35 appender.stdout.layout.pattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n