Thanks guys for your reply.
I think JVM is not the problem as when I run my code from eclipse then it
shows this information for all log messages.

When I run my code from outside eclipse then the MINA LoggerFilter generated
messages also show this information. But the log messages in my code (I have
used slf4j Logger) do not show it.

I have not compiled my code in debugging mode. I am not sure how to do it, I
will try to do it.

Thanks,
Arj
-----Original Message-----
From: W.B. Garvelink [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2008 16:42
To: [email protected]; [EMAIL PROTECTED]
Subject: Re: slf4j configuration

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
>
>
>

Reply via email to