On Jun 30, 2005, at 3:32 PM, Schuweiler, Joel J. wrote:
I'm using the following in my socketserver xml configuration<layout class="org.apache.log4j.PatternLayout"><param name="ConversionPattern" value="%C %d %p %r %F % L %l %m %n"/></layout>I wind up with log messages where the C L and l are question marks, how can I resolve this issue?
Compile with debug information. Those fields depend on the class, line number, source file name, etc being present in the Java class file. If you compile without debug information, where is no location information to extract so question marks are displayed. Please note that each of those fields can be very expensive to determine and will substantially reduce the speed of logging. For example, it would be much faster to use %c (the logger (formerly category) name) than %C and %c will work regardless of whether debug information is compiled into the class.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
