[logback-user] resend. logback include file can not be found
Ted Meng
ted_meng at comcast.net
Fri Mar 26 16:10:17 CET 2010
Thanks. it works using resource. I will file a bug report for file type
Ceki Gülcü wrote:
> If you wish to reference a resource on the class path, use the
> "resource" attribute. Example:
>
> <configuration>
> <include resource="includedConfig.xml"/>
> </configuration>
>
> This is already explained in the docs but not very explicitly.
>
> On 25/03/2010 6:18 PM, Ted Meng wrote:
>> Hi:
>>
>> I put an include directive in my logback.xml
>>
>> <configuration>
>> <include file="includedConfig.xml" />
>> </configuration>
>>
>> the "includedConfig.xml" is in the same directory (classpath)
>> as the logback.xml file itself. But logback runtime keeps saying
>> [java] 03:21:41,533 |-ERROR in
>> ch.qos.logback.core.joran.action.IncludeAction - File
>> [includedConfig.xml] does not exist. java.io.FileNotFoundException:
>> logback.xml (The system cannot find the file specified)
>> Using a absolute path is not a choice here so I wonder what would be the
>> best way to do this or
>> maybe I misunderstand something. I'd assume logback program would know
>> the location of logback.xml
>> so it would use it as the reference point to figure out any relative
>> path.
>>
>> Thanks
>>
>> -Ted
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
More information about the Logback-user
mailing list