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
.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
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
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:
> 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
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
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.
> 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
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
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]
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
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
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
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
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
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
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
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
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,
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
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
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
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
>
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
24 matches
Mail list logo