The database driver analogy fails because your JDBC code has a standard API while logging does not. Putting the database driver in an EAR file (you may not have a WAR file at all) does seem like overkill in terms of isolation but it's not entirely without merit. The other issue is that an application may very well have it's own logging requirements and you want to be able to view those logs independent of the system logs. I would venture to say that most people centralize logging in a wrapper class and delegate to make it simple to switch it out, however, that is a design choice that cannot be enforced. Logging calls get weaved into everything and if somebody wants to tote a logging API with them (versus wrapping it with a layer of insulation) that is up to them. Your point of view is correct in theory but the specification says nothing about having to supply configurable logging in the server.
----- Original Message ----- From: "Jim Crossley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 14, 2003 6:59 AM Subject: Re: [JBoss-user] JBoss & Log4J Anders Engstr�m <[EMAIL PROTECTED]> writes: >> Remeber that the conf directory is jsut a part of the class path and the >> log4j config file in there is a standard log4j xml config file. I >> usually add my logging information to it. > Maybe I wasn't clear enough - but this is exactly the scenario we want > to avoid. The deployed application should have a self-contained logging > configuration. There should be no need to modify _server_configuration_ > files to enable/modify logging for a deployed application. I must respectfully disagree. The app server is precisely where you want logging configuration. IMHO, it is very poor form for deployable units to define their own logging parameters. It's akin to packaging their own JDBC drivers in WEB-INF/lib -- ugh!! Something like logging requires centralized control -- it's one of the compelling reasons for using an app server in the first place! What's stopping a poorly-configured app from filling up the disk with log output? The person responsible for disk usage is the sysadmin. He won't be happy having to hunt through his deployed web apps looking for a bad log4j config file. Just my $.02 -- Jim Crossley http://crossleys.org/~jim 404.409.9085 ------------------------------------------------------- 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 ------------------------------------------------------- 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
