forked from solrmarc/solrmarc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j.properties
40 lines (35 loc) · 1.46 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
# Properties file for logging via log4j
#
# $Id$
log4j.rootLogger=info, stdout, file
# Application logging level
# Valid options are TRACE,DEBUG,INFO,WARN,ERROR,FATAL
log4j.logger.org.solrmarc.marc.MarcPrinter=WARN
log4j.logger.org.solrmarc.marc.MarcImporter=INFO
log4j.logger.org.solrmarc.marc.MarcHandler=INFO
log4j.logger.org.solrmarc.tools.Utils=INFO
# stdout appender
# Output the file name and line number to the console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
log4j.appender.stdout.target=System.err
# Log file appender
# Use a RollingFileAppender
# named solrmarc.log
# with a max file size of 100KB
# and keep 1 previous log file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=${one-jar.home.dir}solrmarc.log
log4j.appender.file.MaxFileSize=100KB
log4j.appender.file.MaxBackupIndex=1
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d [%t] %-5p %t %c - %m%n
#smtp
#log4j.appender.appMail=org.apache.log4j.net.SMTPAppender
#log4j.appender.appMail.SMTPHost=smtp.myu.edu
#log4j.appender.appMail.Subject=Solrmarc Log
#log4j.appender.appMail.layout=org.apache.log4j.PatternLayout
#log4j.appender.appMail.layout.ConversionPattern=%p %d{dd/MM/yyyy HH:mm:ss} %F %L %m%n