Abgeschickt von Danko am 02 Juni, 2005 um 09:25:56:
Antwort auf: About JDBCAppender von ryan am 01 Juni, 2005 um 05:30:01:
Hi,
you need some method of configuration for log4j.
Examples are:
- PropertyConfigurator with .properties (text) file
- DOMConfigurator with xml file
- System parameter: -Dlog4j.configuration=foobar.xml uses either DOMConfigurator for xml files or PropertyConfigurator for text files
- Configuration by code
See log4j doc for an explanation.
http://logging.apache.org/log4j/docs/manual.html
All of the examples are used in my test code somewhere.
Danko
: Dear Sir,
: If I use JDBCplus, do I also need a configure file such as log4j_test_simple.xml and where should I add it in my project? Or I can just use only all *.java files and need not to have a XML file.
: when I saw many examples on other website, some will use the xml file such as
: ===> PropertyConfigurator.configure
: ===> ("F:\\nepalon\\log4j2.properties");
: and I did not see any code like this in your project,
: Thanks for your reply...
: