logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Voisin <benoit.voi...@ergoidp.dk>
Subject RE: [no class and line will logged]
Date Thu, 15 Aug 2002 10:37:36 GMT
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.


-----Original Message-----
From: Thomas Muller [mailto:ttm@online.no]
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.



 | -----Original Message-----
 | From: mabue@localhost.localdomain [mailto:mabue@localhost.localdomain]On
 | Behalf Of Marco Buchler
 | Sent: 15 August 2002 13:09
 | To: log4j-user@jakarta.apache.org
 | 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:
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

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:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

View raw message