It might also be caused by the JVM you are using. Some JVM (like the Oracle one, ojvm) do not format the stack trace correctly => Log4j is not able to use it to find the location. Try the Sun JVM.
Benoit -----Original Message----- From: Thomas Muller [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 12:17 To: Log4J Users List Subject: RE: [no class and line will logged] Make sure that you compile the application with the debug info intact. If you use Sun's compiler, the -g option controls this. Also, some appenders require the locationInfo parameter to be set to "true" to carry over class/method/line information. Last, JIT compilation might optimize location information away, so make sure that you run the VM in pure interpreted modus (at least during debugging). Sun's 1.4 VM for win2k controls this with the -X option. For interpreted mode, use -Xint. Hope this helps. -- Thomas | -----Original Message----- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On | Behalf Of Marco Buchler | Sent: 15 August 2002 13:09 | To: [EMAIL PROTECTED] | Subject: [no class and line will logged] | | | hi, | | i've a little problem. | | my conversionpattern includes the "(%F:%L)"-string. all logs will so | log the file und the line. but when i tried this now just one class do | this not. this will loggs (?:?) instead of for example (MyClass:3). | | | Where is the problem??? | | | thanks for helping. | | | marco | | | -- | To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ************************************************************************* Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. The information supplied in this email should be treated in confidence. No liability whatsoever is accepted for any loss or damage suffered as a result of accessing this message or any attachments. ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>