[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-logging-general
Subject: log4j.configuration: relative path
From: Mark Ferguson <mferguson.lists () gmail ! com>
Date: 2006-02-06 15:41:35
Message-ID: 66a49af60602060741m3a05375eq32cdb849108353a6 () mail ! gmail ! com
[Download RAW message or body]
Hello, I would like to link to my log4j configuration file as a
relative path. My current VM parameter is this :
-Dlog4j.configuration=../../conf/log4j.properties
When I run log4j with debugging I receive the following message:
log4j: Trying to find [../../conf/log4j.properties] using context
classloader sun.misc.Launcher$AppClassLoader@133056f.
log4j: Trying to find [../../conf/log4j.properties] using
sun.misc.Launcher$AppClassLoader@133056f class loader.
log4j: Trying to find [../../conf/log4j.properties] using
ClassLoader.getSystemResource().
log4j: Could not find resource: [../../conf/log4j.properties].
By poking around the source code it looks like the VM argument is
parsed as a URL and this is causing me problems, as it throws a
MalformedURLException. Is there any way to provide a relative path and
have it parsed correctly?
Thanks,
Mark
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic