Re: ERROR HTMLLayout contains invalid attributes "datePattern", "timezone"

2021-02-14 Thread Gary Gregory
ch indicates that HtmlLayout has those to parameters: > > > > > > However, when I run my program, I get an error: > > > > ERROR HTMLLayout contains invalid attributes "datePattern", > "timezone" > > > > Here's a snippet fr

Re: ERROR HTMLLayout contains invalid attributes "datePattern", "timezone"

2021-02-14 Thread Jeff Schmidt
.org/log4j/2.x/manual/layouts.html#HTMLLayout Which indicates that HtmlLayout has those to parameters: However, when I run my program, I get an error: ERROR HTMLLayout contains invalid attributes "datePattern", "timezone" Here's a

Re: ERROR HTMLLayout contains invalid attributes "datePattern", "timezone"

2021-02-14 Thread Gary Gregory
nual/layouts.html#HTMLLayout > > Which indicates that HtmlLayout has those to parameters: > > > However, when I run my program, I get an error: > > ERROR HTMLLayout contains invalid attributes "datePattern", "timezone" > > Here's a snippet from my lo

ERROR HTMLLayout contains invalid attributes "datePattern", "timezone"

2021-02-14 Thread Jeff Schmidt
ayout contains invalid attributes "datePattern", "timezone" Here's a snippet from my log4j.xml where I set this up:                                             timezone="America/New_York" />             And here's the pom.xml version for log4j2:    

RE: DatePattern question

2008-09-19 Thread Michael Erskine
> Thanks for the hint, my version of log4j does not have such support, I > did RTFM :) > Which version of log4j has these methods? I will check again though. I'm using the latest 1.2 log4j (http://logging.apache.org/log4j/1.2/index.html) which is 1.2.15 (http://archive.apache.org/dist/logging/log

Re: DatePattern question

2008-09-17 Thread Reza Razavipour
Thanks for the hint, my version of log4j does not have such support, I did RTFM :) Which version of log4j has these methods? I will check again though. Thanks Reza On Wed, Sep 17, 2008 at 12:35 AM, Michael Erskine <[EMAIL PROTECTED]> wrote: >> how do I set and get DatePattern attr

Re: DatePattern question

2008-09-17 Thread Reza Razavipour
I understand this, thanks. The question was how to do that at runtime, on the fly... On Tue, Sep 16, 2008 at 11:02 PM, NehaG <[EMAIL PROTECTED]> wrote: > > The DatePattern Attribute can be set from the configuration file of log4j as > follows: > > log4j.appender.appendername.

RE: DatePattern question

2008-09-17 Thread Michael Erskine
> how do I set and get DatePattern attribute from a > DailyRollingFileAppender, in code? Hi Reza, I don't want to sound "all RTFM" :) but the DailyRollingFileAppender has methods getDatePattern and setDatePattern! Perhaps a glance at the code? :) Reg

Re: DatePattern question

2008-09-16 Thread NehaG
The DatePattern Attribute can be set from the configuration file of log4j as follows: log4j.appender.appendername.DatePattern='.'dd-MMM-'.log' Reza Razavipour-2 wrote: > > All, > > how do I set and get DatePattern attribute from a > DailyRollingFileAp

DatePattern question

2008-09-16 Thread Reza Razavipour
All, how do I set and get DatePattern attribute from a DailyRollingFileAppender, in code? Thanks Reza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread Andre Dantas Rocha
e: > > > > James, > > > > > > > > Only one file is created: PVT-2006-07-14-30.log > > > > > > > > André > > > > > > > > > > > > > It doesn't take a DatePattern but that probably doesn't hurt anyth

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread James Stauffer
log show entires from multiple minutes? > > On 7/27/06, Andre Dantas Rocha <[EMAIL PROTECTED]> wrote: > > James, > > > > Only one file is created: PVT-2006-07-14-30.log > > > > André > > > > > > > It doesn't take a DatePattern but that

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread Andre Dantas Rocha
Yes. I think your class must extend RollingFileAppender... > Does the log show entires from multiple minutes? > > On 7/27/06, Andre Dantas Rocha <[EMAIL PROTECTED]> wrote: > > James, > > > > Only one file is created: PVT-2006-07-14-30.log > > > > Andr

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread James Stauffer
Does the log show entires from multiple minutes? On 7/27/06, Andre Dantas Rocha <[EMAIL PROTECTED]> wrote: James, Only one file is created: PVT-2006-07-14-30.log André > It doesn't take a DatePattern but that probably doesn't hurt anything. > What are you doing to te

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread Andre Dantas Rocha
James, Only one file is created: PVT-2006-07-14-30.log André > It doesn't take a DatePattern but that probably doesn't hurt anything. > What are you doing to test it and what are the results? I have used > this class in production for years and it has always worked just f

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread James Stauffer
It doesn't take a DatePattern but that probably doesn't hurt anything. What are you doing to test it and what are the results? I have used this class in production for years and it has always worked just fine. On 7/27/06, Andre Dantas Rocha <[EMAIL PROTECTED]> wrote: James, Th

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread Andre Dantas Rocha
James, There is my config: http://jakarta.apache.org/log4j/"; debug="true"> Thanks, André > What isn't rolling the file? My class or the log4j class. What are > you doing to test? > > On 7/27/06, Andre Dantas Rocha <[EMAIL PROTECTED]> w

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread James Stauffer
What isn't rolling the file? My class or the log4j class. What are you doing to test? On 7/27/06, Andre Dantas Rocha <[EMAIL PROTECTED]> wrote: James, Thanks for your help. Unfornutally it's not rolling the file. Is there a way to do this? Thanks, André > I have wrote an appender that doe

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread Andre Dantas Rocha
James, Thanks for your help. Unfornutally it's not rolling the file. Is there a way to do this? Thanks, André > I have wrote an appender that does that. > http://stauffer.james.googlepages.com/DateFormatFileAppender.java > > On 7/27/06, Andre Dantas Rocha <[EMAIL PROTECTED]> wrote: > > Hi all,

Re: DailyRollingFileAppender & DatePattern

2006-07-27 Thread James Stauffer
I have wrote an appender that does that. http://stauffer.james.googlepages.com/DateFormatFileAppender.java On 7/27/06, Andre Dantas Rocha <[EMAIL PROTECTED]> wrote: Hi all, My current log configuration is: And the generated files: SYSTEM (first file) SYSTEM-01-02-2006.log SYSTEM-02-02-2006

DailyRollingFileAppender & DatePattern

2006-07-27 Thread Andre Dantas Rocha
Hi all, My current log configuration is: And the generated files: SYSTEM (first file) SYSTEM-01-02-2006.log SYSTEM-02-02-2006.log SYSTEM-03-02-2006.log Is there a way to make the first file (SYSTEM) follow the rolling configuration, so I would have: SYSTEM-01-02-2006.log (first file) SYSTE

RE: DatePattern

2004-08-06 Thread Sandeep Murthy (Altrantec)
doesn't seem to function. Thnx for any help.. -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 5 de Agosto de 2004 22:55 To: 'Log4J Users List' Subject: RE: DatePattern What is the full appender configuration information? Rolling will on

RE: DatePattern

2004-08-05 Thread Paul Smith
eep Murthy (Altrantec) [mailto:[EMAIL PROTECTED] > Sent: Friday, August 06, 2004 3:11 AM > To: Log4J Users List > Subject: DatePattern > > Hello again, > > I have set the Date pattern as : > log4j.appender.R.DatePattern='.'-MM-dd-HH-mm but the logs are not >

DatePattern

2004-08-05 Thread Sandeep Murthy (Altrantec)
Hello again, I have set the Date pattern as : log4j.appender.R.DatePattern='.'-MM-dd-HH-mm but the logs are not getting rolled over every minute.. Its working somewhat strange, the logs getting rolled over once in a while. Sometimes after a minute, sometime after 5-6 minutes.. could this