I am compiling using an Ant javac element if that makes a difference? Thank you!!
<!-- compile sources -->
<target name="compile">
<javac
fork="yes"
executable="${local.javac}"
classpath="${server.test.lib.classpath};${server.test.iq2.classes}"
srcdir="${local.src}"
destdir="${server.test.iq2.classes}"
/>
<!-- copy files that need to be in classes branch -->
<copy todir="${server.test.iq2.classes}">
<fileset dir="${local.src}" casesensitive="yes">
<include name="**/*.properties" />
<include name="**/*.xml" />
</fileset>
</copy>
</target>
> -----Original Message-----
> From: Ionel GARDAIS [mailto:[EMAIL PROTECTED]
> Sent: 29 June 2004 14:30
> To: Log4J Users List
> Subject: Re: Why does %L output as a question mark?
>
>
> Hi,
>
> Did you compile with optimization on ?
>
> optimization removes lines numbers unless debug is on
> and debuglevel is set to lines,vars,source.
>
> actually, I don't know if there is still optimization
> if you force debug and debuglevel ...
>
> ionel
>
> --- Allistair Crossley <[EMAIL PROTECTED]> a
> �crit : > I've searched Google without success on this
> issue.
> > I am getting question marks where the line number
> > should be in my log files. My setup is as follows;
> >
> >
> log4j.logger.com.cmp.newmedia.intranet.iq.logic.schedules=debug,
> > SchedulesA
> >
> log4j.appender.SchedulesA=org.apache.log4j.DailyRollingFileAppender
> >
> log4j.appender.SchedulesA.File=d:/iq/logs/schedules.log
> >
> log4j.appender.SchedulesA.layout=org.apache.log4j.PatternLayout
> >
> log4j.appender.SchedulesA.layout.ConversionPattern=%d{ABSOLUTE}
> > %5p %c{1}:%L - %m%n
> > log4j.appender.SchedulesA.DatePattern=.yyyy-MM-dd
> >
> > In my ScheduleLogic class in package
> > com.cmp.newmedia.intranet.iq.logic.schedules I get
> > the logger as follows;
> >
> > static Logger logger =
> > Logger.getLogger(ScheduleLogic.class);
> >
> > and call it;
> >
> > logger.debug("list");
> >
> > My statements come out as follows;
> >
> > 14:09:40,392 DEBUG ScheduleLogic:? - list
> >
> > This seems to be a widespread problem in all my logs
> > but I run other software like Hibernate which
> > manages to get line numbers into my logs using the
> > same pattern!
> >
> > Your help appreciated, ADC.
> >
> >
> > <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE>
> >
> -------------------------------------------------------
> > QAS Ltd.
> > Developers of QuickAddress Software
> > <a href="http://www.qas.com">www.qas.com</a>
> > Registered in England: No 2582055
> > Registered in Australia: No 082 851 474
> >
> -------------------------------------------------------
> > </FONT>
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
>
>
>
>
> Cr�ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
> Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
>
> Dialoguez en direct avec vos amis gr�ce � Yahoo! Messenger
> !T�l�chargez Yahoo! Messenger sur http://fr.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]