Hi Ceki,

Thank for the help.
I am running jdk 1.3. and the servlets are running on Orion (J2EE platform).
I am using log4j version  1-1b

I noticed that jdk 1.4. has a java.util.logging.getThreadID() but it's still
in beta...

I am running on Linux RedHat 7.0.

With perl I get the real process id, that linux uses... why so difficult in
java ??

Thanks,
Eddie

----- Original Message -----
From: Ceki G�lc� <[EMAIL PROTECTED]>
To: LOG4J Users Mailing List <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 6:37 PM
Subject: Re: Is it a bug or feature?



Welcome to the world of Java. Java has gives no guarantees on the ordering
of threads. The creation of the LoggingEvent and its logging are not atomic.
It is possible for Thread-12 to create the logging event at 16:28:17,711,
loose control to Thread-6, have thread-6 log the message with the timestamp
16:28:50,581, have thread-12 regain control and log the message with
timestamp 16:28:17,711.

Having said that 39 seconds is a long time for a thread to loose control.
More importantly, the forth message has the time stamp  16:28:17,893 which
completely debunks the my argument given above.

Can you describe your environment? Does the output come from different
clients? Are there multiple JVMs writing to the same log file? Which version
of log4j is this? Ceki

At 16:37 30.05.2001 +0200, you wrote:
>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
>2001-05-30 16:28:11,014 [main]     INFO cb - Startup: Wed May 30 16:28:11
CEST 2001
>2001-05-30 16:28:50,581 [Thread-6]     INFO show.gif - show giffile
/tmp/dmg0nus3k2_991232924522.gif
>mber of connections: 1
>2001-05-30 16:28:17,711 [Thread-12]     DEBUG cb.db - INSERT DELAYED INTO
ise_projects.statistic VALUES('','localhost','Project list',NOW(),NULL)
>2001-05-30 16:28:17,893 [Thread-12]     DEBUG cb.db - SELECT DISTINCT
databasename,DATE_FORMAT(creation_datetime,'%b %d %T
%Y'),created_by,created_from_host,IFNULL(description,'&nbsp;'),IFNULL(access
,'Public'),IFNULL(category,'&nbsp;'),UPPER(databasename) AS udb FROM
ise_projects.existing WHERE databasename
IN('cb_','ise_','jedit_2_1','swing_') AND (access='public' OR access IS
NULL) ORDER BY udb
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

--
Ceki G�lc�


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

Reply via email to