logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject RE: Get line number but using a wrapper class
Date Thu, 10 Jul 2003 17:32:18 GMT

You need to tell javac to compile with debug flags, otherwise the line 
numbers will not be provided.

Jake

At 07:26 PM 7/10/2003 +0200, you wrote:
>Dear Steven and all
>
>Thanks for the reply.
>I tried and follow the examples in the mailing list.
>
>Now I have a strange problem.
>If have two web applications which are using SAME wrapper class.
>One can display method name and line number correct and the second shows
>method name and a question mark for the line number.
>
>
>Webapp | method name | line number
>1               ok              ok
>2               ok              ?
>
>Currently I cannot see any different in the two web applications.
>Just one is compiled with make and the other is compiled with ant.
>But I'm not sure if this is the reason.
>
>If someone has a similar problem any information is highly appreciated.
>
>Thanks
>
>Joerg
>
>
>
> > -----Original Message-----
> > From: Ebersole, Steven [mailto:steven.ebersole@vignette.com]
> > Sent: Thursday, July 10, 2003 4:43 PM
> > To: 'Log4J Users List'
> > Subject: RE: Get line number but using a wrapper class
> >
> >
> > This has been covered _NUMEROUS_ times on the mailing list.
> > You need to use the Logger.log(String,Level,Object,Throwable)
> > method from within your wrapper.  See the javadocs for that method.
> >
> >
> >
> > -----Original Message-----
> > From: Joerg Eggink [mailto:eggink@access-sys-eu.com]
> > Sent: Thursday, July 10, 2003 9:37 AM
> > To: log4j-user@jakarta.apache.org
> > Subject: Get line number but using a wrapper class
> >
> >
> > Dear all
> >
> > I want to write my own log4j wrapper class but I want also
> > the line number in the output of each statement.
> >
> > I this possible ?
> > Does log4j keep the line number of the wrapper log statement
> > or the line number of the wrapper class ?
> >
> >
> > Regards
> >
> > Joerg
> >
> >
> > -----------------------------------
> > Joerg Eggink
> > ACCESS Systems Europe GmbH
> > Essener Str. 5 / TZU-VI
> > D-46047 Oberhausen / Germany
> > Tel.: +49-208-8290-6436
> > mailto: eggink@access-sys-eu.com
> > Internet: www.access-sys-eu.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org


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


Mime
View raw message