Ed,

thank you for your reply !

You are right: there was a duplicate definition for my appender - now things 
are running smooth :)

log4j is very new for me, so thank you for the right logger-syntax. I wondered, 
why loggers are named by package - now I see why :)

For changing some app behaviours programmatically I am diving into hivemind-jmx 
at the moment - there are some points in my app where jmx would be great 
(reloading cached menue-entries from the database and so on ...) for reducing 
downtimes.

But there would still be a problem with changing the logging-behavior, because 
redeploying the war-file with a different log4j.properties file doesnt change 
the logging-levels, for example. When restarting the Tomcat service, the new 
log4j configuration is activated. So there seems to be a 'higher force', 
integrated in Tomcat (?) which is loading 'my' log4j.properties ?

So I am still looking for the right place to change logging behaviour :(

Thanks again,
Gerald

>Gerald,
>
>What are the contents of your log4j.properties file?  Perhaps you have more
>
>than one definition for your file appender?
>Also, if you want to limit the entries to the log file, you can add
>settings
>on a logger-by-logger basis.  For example, entering the settings:
>
>log4j.logger.org.springframework = WARN
>log4j.logger.my.package = INFO
>log4j.logger.my.package.utilities = DEBUG
>
>will limit the messages for all loggers that are defined in
>org.springframework classes to the WARN level, all of your loggers to the
>INFO
>level, except those loggers under the utilities package, which will be set
>to
>the DEBUG level
>
>I believe you can also control the settings programmatically, if you chose
>to
>construct an admin UI interface, but I've never had a need for that.
>
>Cheers,
>Ed
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to