logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis tuti <mierdat...@gmail.com>
Subject Redirect errors and debug to file with log4j with log4j.properties
Date Tue, 14 May 2019 11:30:44 GMT
Hi,

I'm trying to redirect java errors to file. I've modified log4j propierties
file but I can't see errors in file My log4j.propierties is:

log4j.appender.FILE.File=${user.home}/log2.out
log4j.rootLogger = DEBUG, FILE
log4j.rootLogger = ERROR, FILE

# Define the file appender
log4j.appender.FILE=org.apache.log4j.FileAppender
# Define the layout for file appender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L    -
%m%n

Could you help me? Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message