commit | 8386854b38688a178e35ba1d866785dcddf3fef0 | [log] [tgz] |
---|---|---|
author | Chris Custine <ccustine@apache.org> | Wed Feb 10 17:11:01 2010 +0000 |
committer | Chris Custine <ccustine@apache.org> | Wed Feb 10 17:11:01 2010 +0000 |
tree | ec744a96811085a1d4e8179f0b4b608444f8d785 | |
parent | 2cd07ba5adfd6e2dc9b5744aa40723c3118a8759 [diff] |
FELIX-2065 - BootstrapLogManager doesn't load etc/org.ops4j.pax.logging.cfg file git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@908589 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/main/src/main/java/org/apache/felix/karaf/main/BootstrapLogManager.java b/karaf/main/src/main/java/org/apache/felix/karaf/main/BootstrapLogManager.java index f931feb..c31af9c 100644 --- a/karaf/main/src/main/java/org/apache/felix/karaf/main/BootstrapLogManager.java +++ b/karaf/main/src/main/java/org/apache/felix/karaf/main/BootstrapLogManager.java
@@ -52,7 +52,7 @@ // Make a best effort to log to the default file appender configured for log4j FileInputStream fis = null; try { - fis = new FileInputStream("../etc/org.ops4j.pax.logging.cfg"); + fis = new FileInputStream(System.getProperty("karaf.base") + "/etc/org.ops4j.pax.logging.cfg"); props.load(fis); } catch (IOException e) { props.setProperty("log4j.appender.out.file", "${karaf.base}/data/log/karaf.log");