
I thought that there was some agreement that Joran would (or should) include the capability to include a file based on a system property, which provides exactly the required functionality without making this a special case. A way to switch the configuration at runtime is a hard requirement for several applications I develop. Making this part of Joran (possibly providing a short sample that gets everything from a property) seems like a great solution that could be helpful in many situations (especially with conditionals and regex captures). There was an email thread covering this on 2/8. Thanks, Andy Gerweck -----Original Message----- From: logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] On Behalf Of Ceki Gülcü Sent: Tuesday, March 13, 2007 2:18 PM To: logback users list; logback-user@qos.ch Subject: Re: [logback-user] Logback configuration Hello Anders, If you don't have a J2EE container, using a context selector is a major overkill. If you tell us that it would not be possible to package a different copy of logback.xml in each standalone application, then we will add the functionality you requested, i.e. specifying the configuration file through a system property. (I am not very fond of this feature, but if you really need it, we'll be happy to oblige.) After you have ascertained that packaging a distinct copy of logback.xml in each application is not an option, could you please you file a bug/enhancement report? At 01:30 AM 3/13/2007, Anders Wallgren wrote:
We're not running inside a J2EE container, rather this is a set of standalone applications launched out of the same classpath.
As it stands, I don't think ContextSelector will help, unless there's some custom implementation of that interface that I could put together to do the right thing. I'm not yet familiar enough with logback to answer that myself, so your input is appreciated.
anders
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. ****************************************************************************