Great!  It works.

Thanks, N

On Thu, Nov 6, 2008 at 10:38 AM, Ceki Gulcu <listid@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@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@qos.ch
http://qos.ch/mailman/listinfo/logback-user