-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j.properties
60 lines (49 loc) · 2.79 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
60
#-----------------------------------------------------------------------------------------
# Global logging configuration
#-----------------------------------------------------------------------------------------
# Production version
#log4j.rootLogger=ERROR,fileout
# Debug version
log4j.rootLogger=ERROR,stdout
#-----------------------------------------------------------------------------------------
# Console output...
#-----------------------------------------------------------------------------------------
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.layout.conversionPattern=%d{MM-dd-yyyy HH:mm:ss,SSS} [%t] %-5p %c{4} - %m%n
# Slow, caller context, debug version
#log4j.appender.stdout.layout.conversionPattern=%d{MM-dd-yyyy HH:mm:ss,SSS} [%t] %-5p %c.%M(){%L} - %m%n
#Simple Output
log4j.appender.stdout.layout.conversionPattern=%c.%M(){%L} - %m%n
#-----------------------------------------------------------------------------------------
# Rolling log file output...
#-----------------------------------------------------------------------------------------
log4j.appender.fileout=org.apache.log4j.RollingFileAppender
log4j.appender.fileout.File=MMV3.log
log4j.appender.fileout.MaxFileSize=512MB
log4j.appender.fileout.MaxBackupIndex=4
log4j.appender.fileout.layout=org.apache.log4j.PatternLayout
#Full Output
log4j.appender.fileout.layout.conversionPattern=%d{MM-dd-yyyy HH:mm:ss,SSS} [%t] %-5p %c{4} - %m%n
# Slow, caller context, debug version
#log4j.appender.fileout.layout.conversionPattern=%d{MM-dd-yyyy HH:mm:ss,SSS} [%t] %-5p %c.%M(){%L} - %m%n
#-----------------------------------------------------------------------------------------
# Configuration for receiving e-mails when ERROR messages occur.
#-----------------------------------------------------------------------------------------
#log4j.appender.mail=org.apache.log4j.net.SMTPAppender
#log4j.appender.mail.SMTPHost=127.0.0.1
#log4j.appender.mail.Threshold=ERROR
#log4j.appender.mail.BufferSize=1
#log4j.appender.mail.Subject=<Application Name> encountered an Error
#log4j.appender.mail.layout=org.apache.log4j.PatternLayout
#log4j.appender.mail.layout.ConversionPattern=%p [%d{yyy-MM-dd HH:mm:ss,SSS}] %c{1},%M(%L) | %m%n
#-----------------------------------------------------------------------------------------
# What to log
#-----------------------------------------------------------------------------------------
#log4j.additivity.org.springframework=false;
#log4j.category.org.springframework=DEBUG
#log4j.category.org.springframework.security=DEBUG
# Project specific entries
log4j.category.net.ooici = DEBUG