-
Notifications
You must be signed in to change notification settings - Fork 2
/
log4j.properties
31 lines (27 loc) · 1.36 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
#ALL < DEBUG < INFO < WARN < ERROR < FATAL < OFF
#%r [%t] %-5p %c - %m%n (%F:%L) %d
#The first field is the number of milliseconds elapsed since the start of the program.
#The second field is the thread making the log request.
#The third field is the level of the log statement (- quita un espacio al principio).
#The fourth field is the name of the logger associated with the log request.
#The text after the '-' is the message of the statement.
#File:Line.
#Date.
#Use console for debugging
log4j.rootCategory=INFO, stdConsole, logFile
#Do not use console for production
#log4j.rootCategory=ERROR, logFile
log4j.appender.stdConsole=org.apache.log4j.ConsoleAppender
log4j.appender.stdConsole.layout=org.apache.log4j.PatternLayout
log4j.appender.stdConsole.layout.ConversionPattern=%-5p %d [%t] (%F:%L) - %m%n
#log4j.appender.stdConsole.layout.ConversionPattern=%m%n
log4j.appender.logFile=org.apache.log4j.RollingFileAppender
log4j.appender.logFile.File=./logs/linksets_log.log
log4j.appender.logFile.MaxFileSize=512KB
# Keep one backup file
log4j.appender.logFile.MaxBackupIndex=500
log4j.appender.logFile.layout=org.apache.log4j.PatternLayout
log4j.appender.logFile.layout.ConversionPattern=%-5p %d [%t] (%F:%L) - %m%n
#log4j.appender.logFile.layout.ConversionPattern=%m%n
# Print only messages of level WARN or above in the package com.foo.
log4j.logger.com.hp.hpl.jena=ERROR