cvs commit: logging-log4j/src/java/org/apache/log4j TTCCLayout.java

2004-12-21 Thread ceki
ceki2004/12/21 14:04:04 Modified:src/java/org/apache/log4j TTCCLayout.java Log: TTCCLayout deprecated. Revision ChangesPath 1.23 +1 -1 logging-log4j/src/java/org/apache/log4j/TTCCLayout.java Index: TTCCLayout.java =

Re: TimeZone and locale for PatternLayout Was: [RESULT][VOTE]

2004-12-21 Thread Ceki Gülcü
At 07:01 PM 12/21/2004, Curt Arnold wrote: Allowing TZ to be specified at the repository level would add an interaction between layout and repository that I don't believe currently exists and I don't see it adds much additional value. Excellent point. Now note that as explained in [1], there are

Re: JoranConfigurator tips?

2004-12-21 Thread Ceki Gülcü
At 06:49 PM 12/21/2004, Mark Womack wrote: I finished up the implementation of the FileWatchdog last night but before checking it in for general consumption, I want to make sure there are some decent test cases in place. I am going to use the new JoranConfigurator to configure a FileWatchdog from

Re: JoranConfigurator tips?

2004-12-21 Thread Curt Arnold
On Dec 21, 2004, at 11:49 AM, Mark Womack wrote: I finished up the implementation of the FileWatchdog last night but before checking it in for general consumption, I want to make sure there are some decent test cases in place. I am going to use the new JoranConfigurator to configure a FileWatch

Re: TimeZone and locale for PatternLayout Was: [RESULT][VOTE]

2004-12-21 Thread Curt Arnold
On Dec 21, 2004, at 11:41 AM, Mark R Durman/CA/US/MQSolutions wrote: Setting the Time Zone to UTC does enable correlation of events across servers in different time zones (assuming they are all synchronized with a common time source). WebSphere MQ stores all timestamps in UTC for that reason. Fo

JoranConfigurator tips?

2004-12-21 Thread Mark Womack
I finished up the implementation of the FileWatchdog last night but before checking it in for general consumption, I want to make sure there are some decent test cases in place. I am going to use the new JoranConfigurator to configure a FileWatchdog from an xml config file that is being watched.

Re: TimeZone and locale for PatternLayout Was: [RESULT][VOTE]

2004-12-21 Thread Mark R Durman/CA/US/MQSolutions
Setting the Time Zone to UTC does enable correlation of events across servers in different time zones (assuming they are all synchronized with a common time source). WebSphere MQ stores all timestamps in UTC for that reason. For a distributed application, this can be useful. If the user can set t

RE: Filters in o.a.l.filters instead of o.a.l.varia?

2004-12-21 Thread Scott Deboy
+1 I can do the move... along with the ant script change hopefully sometime soon. -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED] Sent: Tue 12/21/2004 9:15 AM To: [EMAIL PROTECTED] Cc: Subject:Filters in o.a.l.filters instead of o.a.l.varia? Scott et a

Re: TimeZone and locale for PatternLayout Was: [RESULT][VOTE]

2004-12-21 Thread Curt Arnold
On Dec 21, 2004, at 10:44 AM, Ceki Gülcü wrote: At 12:01 AM 12/21/2004, Curt Arnold wrote: The Object to String conversion is done once and only once. The result is cached and subsequently shared by all appenders. While I can imagine having two emails (thus two layouts) having different timezone

Filters in o.a.l.filters instead of o.a.l.varia?

2004-12-21 Thread Ceki Gülcü
Scott et al., Should filters go under Filters in o.a.l.filters instead of o.a.l.varia? -- Ceki Gülcü The complete log4j manual: http://qos.ch/log4j/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: RepositorySelector.detachRepository, jetty-plus, gump and PatternLayout.test14

2004-12-21 Thread Ceki Gülcü
At 09:13 AM 12/21/2004, Curt Arnold wrote: The most dreaded nightmare of a new committer is breaking the build. I don't think that I have (and if so only log4j-tests), but I have been having intermittent problems with PatternLayoutTest.test14 and was trying to figure out if it was just me. Pattern

Re: TimeZone and locale for PatternLayout Was: [RESULT][VOTE]

2004-12-21 Thread Curt Arnold
It could only happen if at some point in time, some field or field we shorted and one or more fields were shortened by the same amount. If a simple algorithm could be devised to detect such cases beforehand, then CachedDateFormat is a winner. I had mentioned "SS0" was a potentially malicious tim

Re: TimeZone and locale for PatternLayout Was: [RESULT][VOTE]

2004-12-21 Thread Ceki Gülcü
At 12:01 AM 12/21/2004, Curt Arnold wrote: I'm going to have do some research before I can make a reasonable proposal. Here is a use case that I think suggests that Layout or Appender is the right level: Send logging events to Ceki in fr-CH localized email messages with time in Central European T

Re: TimeZone and locale for PatternLayout Was: [RESULT][VOTE]

2004-12-21 Thread Curt Arnold
On Dec 21, 2004, at 9:54 AM, Ceki Gülcü wrote: CachedDateFormat would not be able to detect the milliseconds field on RelativeTimeDateFormat unless the starting time was an integral second and would not be able to detect millisecond fields if non-arabic digits were set. In either of these case

Re: TimeZone and locale for PatternLayout Was: [RESULT][VOTE]

2004-12-21 Thread Ceki Gülcü
Curt, You are several steps ahead of me. I had seen but had not paid attention to: if (now < previousTime + 1000L && now >= previousTime) { ... else { // // if the length changed then // recalculate the millisecond position if (cache.length() != prevL

cvs commit: logging-log4j/tests/src/java/org/apache/log4j/helpers CachedDateFormatTestCase.java

2004-12-21 Thread ceki
ceki2004/12/21 07:21:56 Added: src/java/org/apache/log4j/helpers CachedDateFormat.java tests/src/java/org/apache/log4j/helpers CachedDateFormatTestCase.java Log: CachedDataFormat is really good stuff. Revision ChangesPath 1.1

DO NOT REPLY [Bug 28836] - file appender could create directory if given and not existing

2004-12-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

RepositorySelector.detachRepository, jetty-plus, gump and PatternLayout.test14

2004-12-21 Thread Curt Arnold
The most dreaded nightmare of a new committer is breaking the build. I don't think that I have (and if so only log4j-tests), but I have been having intermittent problems with PatternLayoutTest.test14 and was trying to figure out if it was just me. I was checking Gump and it looks like that