[DMAAP MM] Update info.yaml
[dmaap/messagerouter/mirroragent.git] / src / main / resources / log4j2.properties
1 ###
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2021 Nordix Foundation.
4 # ================================================================================
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 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19 ###
20
21 # Log4j2 PropertiesConfig
22 status = info
23 name = PropertiesConfig
24
25 # Console Appender
26 appender.console.type = Console
27 appender.console.name = STDOUT
28 appender.console.layout.type = PatternLayout
29 appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p - %m %n
30
31 # Rolling Appender
32 appender.rolling.type = RollingFile
33 appender.rolling.name = rollingFile
34 appender.rolling.fileName = /opt/logs/mmagent.log
35 appender.rolling.filePattern = /opt/logs/$${date:yyyy-MM-dd}/mmagent-%d{yyyy-MM-dd}-%i.log
36 appender.rolling.layout.type = PatternLayout
37 appender.rolling.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p - %m  %n
38 appender.rolling.policies.type = Policies
39 appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
40 appender.rolling.policies.size.size=5MB
41 appender.rolling.strategy.type = DefaultRolloverStrategy
42 appender.rolling.strategy.max = 10
43
44 # Root Logger
45 rootLogger.level = info
46 rootLogger.appenderRef.stdout.ref = STDOUT
47 rootLogger.appenderRef.rolling.ref = rollingFile