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 16:01:36 GMT
so the root logger doesn't always come with a default
layout and one always needs to explicitly define one
all the time necessarily ?

Mohan.

--- Riho Bunder <riho.bunder@hansa.ee> wrote:
> Maybe you must add
>
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
> 
> 
> -----Original Message-----
> From: G.L. Grobe [mailto:gary@grobe.net]
> Sent: 03. august 2002. a. 23:15
> To: LOG4J Users Mailing List
> Subject: could not find value for key
> 
> 
> Anyone know what might be wrong w/ the following
> config to where I'd get the
> error ...
> 
> log4j:ERROR Could not find value for key
> log4j.appender.CONSOLE.layout
> 
> So basically I've got ...
> 
> ---
> 
> log4j.rootLogger=ERROR, CONSOLE
>
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
> 
> # I added the next line thinking it would fix it but
> to no avail ...
>
log4j.appender.CONSOLE.layout.ConversionPattern=[%-5p]:\
> %m%n
> 
> log4j.logger.com.neuroquest.cais.collectors=DEBUG,
> collectors
>
log4j.additivity.com.neuroquest.cais.collectors=false
>
log4j.appender.collectors=org.apache.log4j.RollingFileAppender
> log4j.appender.collectors.File=logs/collector.log
> log4j.appender.collectors.MaxFileSize=100KB
> log4j.appender.collectors.MaxBackupIndex=1
>
log4j.appender.collectors.layout=org.apache.log4j.PatternLayout
>
log4j.appender.collectors.layout.ConversionPattern=[%-5p]:\
> %m%n
> 
> log4j.logger.com.neuroquest.cais.io.process=DEBUG,
> procio
>
log4j.additivity.com.neuroquest.cais.io.process=false
>
log4j.appender.procio=org.apache.log4j.RollingFileAppender
> log4j.appender.procio.File=logs/procio.log
> log4j.appender.procio.MaxFileSize=100KB
> log4j.appender.procio.MaxBackupIndex=1
>
log4j.appender.procio.layout=org.apache.log4j.PatternLayout
>
log4j.appender.procio.layout.ConversionPattern=[%-5p]:\
> %m%n
> 
> Any help much appreciated.
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:log4j-user-help@jakarta.apache.org>
> 


__________________________________________________
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