RE: About Data Conversion Pattern

2003-04-02 Thread Amandeep Midha

yeah...but I dont want to use this for my message. I want log4j to do it

is that possible?

best regards,
Amandeep


-
Amandeep Midha (CHARMIE)
IT Solutions (India) Pvt. Ltd.
No. 17, South End Road,
Basavangudi
Bangalore - 560 004. India
TEL : 91-80-6657180 EXT: 2116
FAX: 91-80-6655755
-



   
 
Shapira,  
 
YoavTo: Log4J Users List [EMAIL 
PROTECTED] 
Yoav.Shapira@   cc:   
 
mpi.com Subject: RE: About Data Conversion 
Pattern 
   
 
04/02/2003 
 
07:24 PM   
 
Please respond 
 
to Log4J  
 
Users List
 
   
 
   
 





Howdy,
By current time millseconds do you mean the output of
System.currentTimeMillis(), i.e. the number of ms since 1/1/1970?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Amandeep Midha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 1:43 AM
To: Log4J Users List
Subject: About Data Conversion Pattern


hi all,

Pls someone could help me in placing the requirement of logging
current
time millseconds instead of any custom date pattern.

Is that possible using any conversion pattern.
Pls help

best regards,
Amandeep



-
Amandeep Midha (CHARMIE)
IT Solutions (India) Pvt. Ltd.
No. 17, South End Road,
Basavangudi
Bangalore - 560 004. India
TEL : 91-80-6657180 EXT: 2116
FAX: 91-80-6655755
-



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender.  Thank you.


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



RE: About Data Conversion Pattern

2003-04-02 Thread Shapira, Yoav

Howdy,
Looking at the JavaDoc for PatternLayout, it says:
The date format specifier admits the same syntax as the time pattern
string of the SimpleDateFormat. Although part of the standard JDK, the
performance of SimpleDateFormat is quite poor.

Looking at the JavaDoc for SimpleDateFormat, I don't see a simple way to
do what you ask.  It has the S character for milliseconds, but I think
that's milliseconds within the current second, so SSS in the format
pattern will always range from 000-999.  And that's not what you want.

So the answer to your original question, AFAIK, is not automatically
with the built-in formats and appenders.  You can obviously extend an
Appender to do this, or write a Renderer to do this as well.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Amandeep Midha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 9:28 AM
To: Log4J Users List
Subject: RE: About Data Conversion Pattern


yeah...but I dont want to use this for my message. I want log4j to do
it

is that possible?

best regards,
Amandeep


-
Amandeep Midha (CHARMIE)
IT Solutions (India) Pvt. Ltd.
No. 17, South End Road,
Basavangudi
Bangalore - 560 004. India
TEL : 91-80-6657180 EXT: 2116
FAX: 91-80-6655755
-




Shapira,
YoavTo: Log4J Users List
log4j-
[EMAIL PROTECTED]
Yoav.Shapira@   cc:
mpi.com Subject: RE: About Data
Conversion Pattern

04/02/2003
07:24 PM
Please respond
to Log4J
Users List







Howdy,
By current time millseconds do you mean the output of
System.currentTimeMillis(), i.e. the number of ms since 1/1/1970?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Amandeep Midha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 1:43 AM
To: Log4J Users List
Subject: About Data Conversion Pattern


hi all,

Pls someone could help me in placing the requirement of logging
current
time millseconds instead of any custom date pattern.

Is that possible using any conversion pattern.
Pls help

best regards,
Amandeep



-
Amandeep Midha (CHARMIE)
IT Solutions (India) Pvt. Ltd.
No. 17, South End Road,
Basavangudi
Bangalore - 560 004. India
TEL : 91-80-6657180 EXT: 2116
FAX: 91-80-6655755
-



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]