/
log4j.properties
59 lines (55 loc) · 2.12 KB
/
log4j.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright (c) 2012, Max Mikhanosha. All rights reserved.
#
# This file is licensed to You 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.
# defaults
#
# Used it testing log4cl vs log4j speed
#
speed.file=/dev/null
root.level=DEBUG
root.appender=speed
# Log4j configuration file.
log4j.rootCategory=${root.level}, ${root.appender}
# Available levels are DEBUG, INFO, WARN, ERROR, FATAL
log4j.appender.SIMPLE=org.apache.log4j.ConsoleAppender
log4j.appender.SIMPLE.layout=org.apache.log4j.SimpleLayout
#
log4j.appender.speed=org.apache.log4j.FileAppender
log4j.appender.speed.file=${speed.file}
log4j.appender.speed.layout=org.apache.log4j.SimpleLayout
log4j.appender.speed.bufferedIO=true
log4j.appender.speed.encoding=latin1
#
# A1 is a ConsoleAppender
#
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
#log4j.appender.A1.layout.ConversionPattern=[%d{MM/dd/yyyy HH:mm:ss}] %-5p %c %m%n
log4j.appender.A1.layout.ConversionPattern=%-5p %c %m%n
#
# A2 is a DailyRollingFileAppender
#
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.file=logs/logfile.log
log4j.appender.A2.datePattern='.'yyyy-MM-dd
log4j.appender.A2.append=true
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
#
# A3 is a UDPAppender for sending logs as broadcast UDP packets
#
log4j.appender.A3=org.apache.log4j.net.UDPAppender
log4j.appender.A3.remoteHost=192.168.15.255
log4j.appender.A3.port=8881
log4j.appender.A3.layout=org.apache.log4j.PatternLayout
log4j.appender.A3.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
#log4j.category.cat1=DEBUG