logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "K. Mohan Nerella" <njkmo...@yahoo.com>
Subject Re: could not find value for key
Date Mon, 05 Aug 2002 15:42:15 GMT
i think you are missing the following line where you
define the layout. by adding thee conversion pattern
line you have implicitly assumed a pattern layout. but
you have to definite it explicitly as

log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout

that needs be put before the conversion pattern line.

Mohan.


--- &#34;G.L. Grobe&#34; &lt;gary@grobe.net&gt; wrote:
&gt; Anyone know what might be wrong w/ the following
&gt; config to where I'd get the
&gt; error ...
&gt; 
&gt; log4j:ERROR Could not find value for key
&gt; log4j.appender.CONSOLE.layout
&gt; 
&gt; So basically I've got ...
&gt; 
&gt; ---
&gt; 
&gt; log4j.rootLogger=ERROR, CONSOLE
&gt;
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
&gt; 
&gt; # I added the next line thinking it would fix it
but
&gt; to no avail ...
&gt;
log4j.appender.CONSOLE.layout.ConversionPattern=[%-5p]:\r
&gt; %m%n
&gt; 
&gt;
log4j.logger.com.neuroquest.cais.collectors=DEBUG,
&gt; collectors
&gt;
log4j.additivity.com.neuroquest.cais.collectors=false
&gt;
log4j.appender.collectors=org.apache.log4j.RollingFileAppender
&gt; log4j.appender.collectors.File=logs/collector.log
&gt; log4j.appender.collectors.MaxFileSize=100KB
&gt; log4j.appender.collectors.MaxBackupIndex=1
&gt;
log4j.appender.collectors.layout=org.apache.log4j.PatternLayout
&gt;
log4j.appender.collectors.layout.ConversionPattern=[%-5p]:\r
&gt; %m%n
&gt; 
&gt;
log4j.logger.com.neuroquest.cais.io.process=DEBUG,
&gt; procio
&gt;
log4j.additivity.com.neuroquest.cais.io.process=false
&gt;
log4j.appender.procio=org.apache.log4j.RollingFileAppender
&gt; log4j.appender.procio.File=logs/procio.log
&gt; log4j.appender.procio.MaxFileSize=100KB
&gt; log4j.appender.procio.MaxBackupIndex=1
&gt;
log4j.appender.procio.layout=org.apache.log4j.PatternLayout
&gt;
log4j.appender.procio.layout.ConversionPattern=[%-5p]:\r
&gt; %m%n
&gt; 
&gt; Any help much appreciated.
&gt; 
&gt; 


=====
---
Reality is just a convenient measure of complexity.
- Alvy Ray Smith

----------------------------------------

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message