removed slf4j-log4j12, added log4j-slf4j-impl
[vnfsdk/refrepo.git] / vnfmarket-be / vnf-sdk-marketplace / src / main / 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 rootLogger.level=INFO
19 rootLogger.appenderRefs=root
20 rootLogger.appenderRef.root.ref=RollingFile
21
22 appender.root.type = RollingFile
23 appender.root.name = RollingFile
24 appender.root.fileName=${env:CATALINA_HOME}/logs/vnfsdkmarketplace.log
25 appender.root.filePattern=${env:CATALINA_HOME}/logs/vnfsdkmarketplace.%d{yyyy-MM-dd-HH:mm:ss}.log
26 appender.root.append=true
27 appender.root.policies.type=Policies
28 appender.root.policies.size.type=SizeBasedTriggeringPolicy
29 appender.root.policies.size.size=20MB
30 appender.root.strategy.type=DefaultRolloverStrategy
31 appender.root.strategy.max=50
32 appender.root.layout.type=PatternLayout
33 appender.root.layout.pattern=%d %-5p [%t][%X{moduleID}][%C %L] %m%n