One thing to check is to make sure you've compiled your code in debugging mode, if you haven't then the information is outright unavailable. Another thing to keep in mind is that the runtime optimization may rewrite methods and/or remove them entirely, so even if you do get line numbers, they may be inaccurate.
Barend On Wed, Jun 18, 2008 at 12:21 PM, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote: > arati wrote: >> >> I want to print the Filename and Line number of the message that's why I >> used %F:%L in the conversion pattern. >> >> But this information is not getting printed in the file. >> >> Instead of filename or line number ? is appears in the log file. >> >> >> Can anybody tell me how to get this info in the log file. >> > > It depends on your JVM. Not all JVM can produce such information. > > This has nothing to do with MINA or the configuration. > > AFAIR, the way traces are being generated is : Log4j generates a StackTrace, > and extract from it all the informations you get in the logs, including the > file name and line number. If the JVM does not generate those informations > while create this stackTrace, you will get '?' instead. >> >> >> Thanks >> >> >> > > > -- > -- > cordialement, regards, > Emmanuel Lécharny > www.iktek.com > directory.apache.org > > >
