Help needed for File inclusion in logback with relative path

Hi All,
I am looking for help in including outside file in logback.xml. It works when I use absolute path but does not work when I use relative path. I am using logback version 0.9.20. Below is the suedo code I am writing. LOGBACK_FILE_PATH is defined in env.properties. I also tried with <include resource=" "> but it does not work either.
<configuration> <property resource="env.properties" /> <include file="${LOGBACK_FILE_PATH}/backendlogback.xml"/>
</configuration>
Any help is appreciated.
Thanks & Regards, Renuka

I'd bet that the current directory isn't what you think it is. (*Chris*) On Aug 22, 2011 7:18 AM, "Renuka Pathak" <reshu.dp@gmail.com> wrote:
Hi All,
I am looking for help in including outside file in logback.xml. It works when I use absolute path but does not work when I use relative path. I am using logback version 0.9.20. Below is the suedo code I am writing. LOGBACK_FILE_PATH is defined in env.properties. I also tried with
<include
resource=" "> but it does not work either.
<configuration> <property resource="env.properties" /> <include file="${LOGBACK_FILE_PATH}/backendlogback.xml"/>
</configuration>
Any help is appreciated.
Thanks & Regards, Renuka
participants (2)
-
Chris Pratt
-
Renuka Pathak