Because J2EE has no standard logging interface. Logging is a proprietary
service at this point you and have to go with what the container provides.
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
From: "Anders Engstr�m" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 11:15 AM
Subject: Re: [JBoss-user] JBoss & Log4J
>
> I have a similar scenario with my J2EE application. I've solved the problem
> by changing my log4j configuration to include definitions only to my loggers
> (categories), for example:
> All application classes in packages under com.mycompany.myapplication then
> in the log4j properties file I have the following configuration:
>
> log4j.appender.consoleApp=org.apache.log4j.ConsoleAppender
> log4j.appender.consoleApp.layout=org.apache.log4j.PatternLayout
> log4j.appender.consoleApp.layout.ConversionPattern=%c %p - %m%n
> #
> log4j.appender.fileApp=org.apache.log4j.FileAppender
> log4j.appender.fileApp.File=log.out
> log4j.appender.fileApp.Append=false
> log4j.appender.fileApp.layout=org.apache.log4j.PatternLayout
> log4j.appender.fileApp.layout.ConversionPattern=%d{dd-MM-yyyy HH:mm:ss}
> %.50c %-5p [%.30t] - %m%n
> #
> log4j.logger.com.mycompany.myapplication=DEBUG, consoleApp, fileApp
>
> I use this configuration file to configure log4j (without resetting the
> current configuration) and since I only configure my loggers it does not
> affect JBoss logging.
>
Thanks for the comment. This is probably the way we'll have to configure
our application logging in JBoss.
But the problem still remains - why should I tamper with a server
configuration file to modify logging within a deployed application?
//Anders
--
|===================================================|
| Anders Engstr�m |
| [EMAIL PROTECTED] |
| http://www.gnejs.net |
| PGP-Key: http://dmzc.gnejs.net/public_key.asc |
|===================================================|
| Your mind is like an umbrella. |
| It doesn't work unless you open it. |
| /Frank Zappa |
|===================================================|
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user