From: Kelley, P. (HEALTH) <pet...@he...> - 2004-11-29 22:40:13
|
Try setting the log4j.debug property on the command line for your application using the JVM -D option. This will give you more information about where log4j is looking for the file. Almost certainly your classpath isn't including the path to the log4j.xml. Try adding the directory containing your log4j.xml file to your classpath. > -----Original Message----- > From: hl7...@li... [mailto:hl7api-devel- > ad...@li...] On Behalf Of Shrock, Court > Sent: Tuesday, 30 November 2004 08:18 > To: 'hl7...@li...' > Subject: [HAPI-devel] I quick question from a newbie re log4j > > This is my problem: > > log4j:WARN No appenders could be found for logger > (ca.uhn.hl7v2.app.MessageTypeRouter). > log4j:WARN Please initialize the log4j system properly. > > I have tried many things to get logging to work. My gut tells me that the > logging system is not reading the log4j.xml file though. In a directory, > I > have the hapi-0.4.2.jar as well as log4j.xml -- the other jars are located > in the directory "lib". When I execute the hapi.jar, I am not getting any > log file like I expect. Anyone else have any suggestions? I feel like I > am > overlooking a very simple item. > > Thank you, > Court > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel |