You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Daniel Kreuzhofer <xd...@secure-net.de> on 2001/05/29 12:15:02 UTC
How do I append different files to different packages
Hy,
I am actually trying to create different file-appenders for different
packages. Does anyone really know a working confguration for this. For
example I would like that all the log entries for the package
"org.mitsu.mcd.services.requestlog" go to a single file.
I have already tried the following, but it doesnt work
log4j.category.org.mitsu.mcd.services.requestlog=debug, another
log4j.appender.another=org.apache.log4j.RollingFileAppender
log4j.appender.another.File=webapps/mcd/logs/request.log
log4j.appender.another.MaxFileSize=100KB
log4j.appender.another.MaxBackupIndex=1
What ist wrong with this configuration? Log4j still logs all entries for the
Classes in that package to the main log-file. It doesnt even work if I
change the first line to a complete Class, for example
log4j.category.org.mitsu.mcd.services.requestlog.RequestLogger=debug,
another
That also does simply not work
Please help!
Thanx
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org
modifying log levels through a management console
Posted by Aaron Smuts <aa...@verizon.net>.
It would be nice to be able to modify log levels during run time.
I built into my logger the ability to get a list of all logs ( categories )
and modify the log level of each during runtime, so I can turn on debugging
and debug in a production environment if necessary, without restarting the
servers and changing a config file. It might be nice to have a servlet
interface to adjust the log levels. It can save you in a tight spot.
I'm trying to move to log4j from my logging system ( complete with viewers
and a level management system ).
In sub projects ( the caching system ) I'm using log4j.
I'd like to have someone on my team build the viewer and the console, if
possible, for log4j.
Aaron
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org
Re: How do I append different files to different packages
Posted by Ceki Gülcü <cg...@qos.ch>.
Why don't try running your application with the log4j.debug system property on. You can define it on the command line or add
log4j.debug=true
in your config file. See what that gives you. Ceki
At 12:15 29.05.2001 +0200, you wrote:
>Hy,
>
>I am actually trying to create different file-appenders for different
>packages. Does anyone really know a working confguration for this. For
>example I would like that all the log entries for the package
>"org.mitsu.mcd.services.requestlog" go to a single file.
>
>I have already tried the following, but it doesnt work
>
>log4j.category.org.mitsu.mcd.services.requestlog=debug, another
>log4j.appender.another=org.apache.log4j.RollingFileAppender
>log4j.appender.another.File=webapps/mcd/logs/request.log
>log4j.appender.another.MaxFileSize=100KB
>log4j.appender.another.MaxBackupIndex=1
>
>What ist wrong with this configuration? Log4j still logs all entries for the
>Classes in that package to the main log-file. It doesnt even work if I
>change the first line to a complete Class, for example
>
>log4j.category.org.mitsu.mcd.services.requestlog.RequestLogger=debug,
>another
>
>That also does simply not work
>
>Please help!
>
>Thanx
>Daniel
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org
--
Ceki Gülcü
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org