[logback-user] Logback configuration
Natan Cox
natan.cox at tenforce.com
Thu Nov 6 19:24:20 CET 2008
Great! It works.
Thanks, N
On Thu, Nov 6, 2008 at 10:38 AM, Ceki Gulcu <listid at qos.ch> wrote:
> Hello Natan,
>
> If you are using 0.9.11, then
>
> <substitutionProperty file="${logback.properties}" />
>
> would work. Try, it. Logback should emit a warning message:
> "[substitutionProperty] element has been deprecated. Plase use the
> [property]
> element instead." SO you would finally write
>
> <property file="${logback.properties}" />
>
> Anyway, it should work.
>
> Natan Cox wrote:
> > Hi all,
> >
> > Is there a way to specify the file substitution propery as something
> > configurable? So I would not do
> >
> > <configuration>
> >
> > <substitutionProperty file="variables1.properties" />
> >
> > but
> >
> > <configuration>
> >
> > <substitutionProperty file="*${logback.properties}*" />
> >
> >
> > where in Java I would have to specify something like
> >
> > java Main -Dlogback.properties=c:/project/Main/main.properties
> >
> > to be able to run my application?
> > Typically I want to have one configuration file, but sometimes I use
> > multiple files to be able to turn on/off certain functionalities.
> >
> > I'm also thinking of moving the logback properties into my application
> > properties file (not sure yet).
> > This configuration option would allow me to achieve this.
> >
> > Thanks, Natan
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Logback-user mailing list
> > Logback-user at qos.ch
> > http://qos.ch/mailman/listinfo/logback-user
>
> --
> Ceki Gülcü
> Logback: The reliable, generic, fast and flexible logging framework for
> Java.
> http://logback.qos.ch
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20081106/67bef742/attachment.htm
More information about the Logback-user
mailing list