If the file is in your JAR, you should be using the "resource" attribute
instead of "file" (which searches your host filesystem).

  <property resource="log.properties" />


On Fri, Apr 19, 2013 at 8:39 PM, Suriyanto <[email protected]> wrote:

> Hello,
>
> I am following the instruction in the Logback manual to use an external
> property file.
>
> <property file="log.properties" />
>
> I have log.properties file in the same directory as my executable jar
> file, which are created as an uber jar file from Maven plugin.
>
> However, I keep getting the error: ERROR in
> ch.qos.logback.core.joran.action.PropertyAction - Could not find properties
> file [log.properties].
>
> Am I putting the file in the correct directory?
>
> Thanks,
> Suriyanto
>
> _______________________________________________
> Logback-user mailing list
> [email protected]
> http://mailman.qos.ch/mailman/listinfo/logback-user
>
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to