logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willy De Waele" <will...@telenet.be>
Subject Some problems with version 1.3a6
Date Fri, 04 Mar 2005 13:19:03 GMT

I'm learning log4j now with the example explained in the short manual under
the header "Configuration":
	PropertyConfigurator.configure(args[0]);
	args[0] refers to a 'abc.properties' file
When i'm using following statements:
	log4j.rootLogger=debug, stdout, R
	log4j.appender.stdout=org.apache.log4j.ConsoleAppender
	log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
	# Pattern to output the caller's file name and line number.
	log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) -
%m%n
	log4j.appender.R=org.apache.log4j.RollingFileAppender
	log4j.appender.R.File=example.log
	log4j.appender.R.MaxFileSize=100KB
	# Keep one backup file
	log4j.appender.R.MaxBackupIndex=1
	log4j.appender.R.layout=org.apache.log4j.PatternLayout
	log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
I get sevral errors:
	1. exception on the RollingFileAppender
	   changed to 'org.apache.log4j.rolling.RollingFileAppender'
	2. DEBUG [main] (PropertyConfigurator.java:574) - Parsing for [root]
with value=[debug, stdout, R].
	   ERROR [main] (WriterAppender.java:182) - No output stream or file
set for the appender named [R].
	   ...
The 'example.log is not written.
and why do I get so many "INFO" messages? Is this because of an alpha
version?

Please some help
TIA
Willy



 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message