commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Calvin Yu <cy...@yahoo.com>
Subject Re: [Logging] Configuring JDK 1.4 logging
Date Mon, 22 Jul 2002 12:58:19 GMT

You can try 
'java.util.LogManager.getLogManager().readConfiguration(InputStream)', 
but the javadoc seems to suggest that it will clear out any existing 
properties.

Calvin

Martin Cooper wrote:
> 
> Yep, I already have this. It's in the file Costin referenced, and it's not
> being picked up, even though the docs say it will be.
> 
> If I specify the file explicitly using what Calvin suggested, that works for
> a command line app using JDK 1.4 explicitly. However, it doesn't work for,
> for example, Struts sample apps, when I use either Resin 2.1.2 or Tomcat
> 4.0.4. Even if I specify the file to these using '-D', it still doesn't
> work.
> 
> My logging.properties file looks like this (ignoring comments):
> 
> .level= FINEST
> java.util.logging.ConsoleHandler.level = FINEST
> java.util.logging.ConsoleHandler.formatter =
> java.util.logging.SimpleFormatter
> org.apache = FINEST
> 
> The way I understand it, I should get gobs of debug information for Struts,
> Commons, etc. But all I see is INFO messages.
> 
> This is driving me nuts!
> 
> Anyone have any other ideas?
> 
> --
> Martin Cooper
> 
> 
> 
>>>However, I've created logging.properties files, per the JDK 
>>
>>1.4 logging
>>
>>>docs, with the logging level turned up to FINEST for 
>>
>>everything, and still I
>>
>>>see nothing but the occasional INFO message. I've even 
>>
>>tried splattering
>>
>>>logging.properties files all over my disk in the hope that 
>>
>>I'll stumble
>>
>>>across the right location, and everything will start 
>>
>>working, but to no
>>
>>>avail.
>>>
>>>If there's someone out there who is successfully using 
>>
>>Commons Logging with
>>
>>>JDK 1.4 logging, I'd sure appreciate some hints and tips...
>>>
>>>Thanks!
>>>
>>>--
>>>Martin Cooper
>>>
>>
>>Craig
>>
>>
>>
>>>--
>>>To unsubscribe, e-mail:   
>>
>><mailto:commons-dev-unsubscribe@jakarta.apache.org>
>>
>>>For additional commands, e-mail: 
>>
>><mailto:commons-dev-help@jakarta.apache.org>
>>
>>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:commons-dev-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: 
>><mailto:commons-dev-help@jakarta.apache.org>
>>
>>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> 




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


Mime
View raw message