%t is for thread id.
Eddie wrote:
>
> Hi Jim,
>
> I notice in your logging that you print the thread id, or something simalar,
> ho do yo do that ??
>
> I want to print the process id (thread id) but don't know how to do that,
> neither can I find something in the Thread class of how to retrieve that.
>
> Any idea ??
>
> ----- Original Message -----
> From: Jim Moore <[EMAIL PROTECTED]>
> To: 'LOG4J Users Mailing List' <[EMAIL PROTECTED]>
> Sent: Wednesday, May 30, 2001 5:12 PM
> Subject: RE: Is it a bug or feature?
>
> > Um, since the third line in you configuration says
> >
> > log4j.appender.A2.Append=false
> >
> > then not appending to your log file is definately what you're telling it
> to
> > do.
> >
> > Taht said, though, something odd does appear to be going on. So others
> that
> > read this don't have to read the log file, here's the first three lines'
> > headers:
> >
> > 2001-05-30 16:28:11,014 [main] INFO cb
> > 2001-05-30 16:28:50,581 [Thread-6] INFO show.gif
> > 2001-05-30 16:28:17,711 [Thread-12] DEBUG cb.db
> >
> > How Thread-6's entry got nudged between the other two, I haven't a clue.
> At
> > first I thought it might be a network issue, but you're logging to the
> same
> > box.
> >
> > -Jim Moore
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Zsolt Koppany
> > Sent: Wednesday, May 30, 2001 10:38 AM
> > To: [EMAIL PROTECTED]
> > Subject: Is it a bug or feature?
> >
> >
> > Hi,
> >
> > here I attach the log (cb.log) and configuration (log.cfg) files. The
> > second line of the log file was written at '16:28:50,581' and the next
> > line at '16:28:17,711'. I do know that the timestamps are ok. I thought
> > that the log will always appended to the end of the log file.
> >
> > Do I misunderstand something?
> >
> >
> > --
> > Zsolt Koppany
> > Intland GmbH www.intland.com
> > Schulze-Delitzsch-Strasse 16
> > D-70565 Stuttgart
> > Tel: +49-711-7221873 Fax: +49-711-7871017
> >
> > ---------------------------------------------------------------------
> > 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]
--
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7221873 Fax: +49-711-7871017
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]