Gvd
2008-08-29 14:04:45 UTC
great !
now it works !!!!
well.
You'll need to prefix the configuration path by "file:", that is, use
java -Dlog4j.debug=true
-Dlog4j.configuration="file:C:\\Work\\03_eclipse_3_3_0\\workspace\\Log4j128Tester\\conf\\log4j.xml"
src.MainClass
as your command line.
Also, http://logging.apache.org/log4j/1.2/manual.html seems in "Example 4"
to recommend use of forward slashes in the file paths, so modifying from
java -Dlog4j.debug=true
-Dlog4j.configuration="file:/C:/Work/03_eclipse_3_3_0/workspace/Log4j128Tester/conf/log4j.xml"
src.MainClass
--
..Juha
---------------------------------------------------------------------
now it works !!!!
no this brings no help.
anyway, i receive some other error info now.
although it still does not work.
Any Suggestions?
java -Dlog4j.debug=true
-Dlog4j.configuration="C:\\Work\\03_eclipse_3_3_0\\workspace\\Log4j128Tester\\conf\\log4j.xml"
src.MainClass
log4j: Trying to find
[C:\\Work\\03_eclipse_3_3_0\\workspace\\Log4j128Tester\\conf\\log4j.xml]
...anyway, i receive some other error info now.
although it still does not work.
Any Suggestions?
java -Dlog4j.debug=true
-Dlog4j.configuration="C:\\Work\\03_eclipse_3_3_0\\workspace\\Log4j128Tester\\conf\\log4j.xml"
src.MainClass
log4j: Trying to find
[C:\\Work\\03_eclipse_3_3_0\\workspace\\Log4j128Tester\\conf\\log4j.xml]
start
log4j:WARN No appenders could be found for logger (Testappender).
log4j:WARN Please initialize the log4j system properly.
end
Ah, got it -- and now I remember having been bitten by this myself aslog4j:WARN No appenders could be found for logger (Testappender).
log4j:WARN Please initialize the log4j system properly.
end
well.
You'll need to prefix the configuration path by "file:", that is, use
java -Dlog4j.debug=true
-Dlog4j.configuration="file:C:\\Work\\03_eclipse_3_3_0\\workspace\\Log4j128Tester\\conf\\log4j.xml"
src.MainClass
as your command line.
Also, http://logging.apache.org/log4j/1.2/manual.html seems in "Example 4"
to recommend use of forward slashes in the file paths, so modifying from
java -Dlog4j.debug=true
-Dlog4j.configuration="file:/C:/Work/03_eclipse_3_3_0/workspace/Log4j128Tester/conf/log4j.xml"
src.MainClass
--
..Juha
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/log4j.configuration-system-property-not-taken-into-account--tp19219001p19220603.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/log4j.configuration-system-property-not-taken-into-account--tp19219001p19220603.html
Sent from the Log4j - Users mailing list archive at Nabble.com.