You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by oops shin <sh...@gmail.com> on 2006/06/08 07:36:04 UTC

[Q] want to change logging filename as --.log.2006-06-08

Hi. All

I'm using log4j.

The dailyRollingFileAppender's logging file is *.log by default.

and the next day change file name with postfix(date) when logging content comes.

The problem is the exact timing.

I have another application that analyse logfile.

at next day I want to see yesterday's log, but don't know whether the
logfile name was changed or not.

( this log has special purpose, so the logging event doesn't come frequently )

As my thought.....

if log appender write log at --.log.2006-06-08 and next day
--.log.2006-06-09, I have no problem.

Is there some solution ?
Plz reply with solution ^^


Thanks in Advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


[Q] want to change logging filename as --.log.2006-06-08

Posted by oops shin <sh...@gmail.com>.
Great !!!!!

Thank you James Stauffer....

I can do my job with  this file name :  'my.log'.yyyy-mm-dd

I've requested some java site , but can't get response....
Thanks for VERY FAST and EXACT reply....

Thanks in Advance
oops Shin.
---------- Forwarded message ----------
From: James Stauffer <st...@gmail.com>
Date: 2006. 6. 9 오전 2:39
Subject: Re: [Q] want to change logging filename as --.log.2006-06-08
To: Log4J Users List <lo...@logging.apache.org>


I have created an appender that can do that.
I uploaded it to
http://stauffer.james.googlepages.com/DateFormatFileAppender.java

On 6/8/06, oops shin <sh...@gmail.com> wrote:
> Yes. that is what i want exactly....
>
> ---------- Forwarded message ----------
> From: James Stauffer <st...@gmail.com>
> Date: 2006. 6. 8 오후 11:14
> Subject: Re: [Q] want to change logging filename as --.log.2006-06-08
> To: Log4J Users List <lo...@logging.apache.org>
>
>
> Do you want the log filename to always have the date in it?
>
> On 6/8/06, oops shin <sh...@gmail.com> wrote:
> > Hi. All
> >
> > I'm using log4j.
> >
> > The dailyRollingFileAppender's logging file is *.log by default.
> >
> > and the next day change file name with postfix(date) when logging content comes.
> >
> > The problem is the exact timing.
> >
> > I have another application that analyse logfile.
> >
> > at next day I want to see yesterday's log, but don't know whether the
> > logfile name was changed or not.
> >
> > ( this log has special purpose, so the logging event doesn't come frequently )
> >
> > As my thought.....
> >
> > if log appender write log at --.log.2006-06-08 and next day
> > --.log.2006-06-09, I have no problem.
> >
> > Is there some solution ?
> > Plz reply with solution ^^
> >
> >
> > Thanks in Advance.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
>
>
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

Re: [Q] want to change logging filename as --.log.2006-06-08

Posted by James Stauffer <st...@gmail.com>.
I have created an appender that can do that.
I uploaded it to
http://stauffer.james.googlepages.com/DateFormatFileAppender.java

On 6/8/06, oops shin <sh...@gmail.com> wrote:
> Yes. that is what i want exactly....
>
> ---------- Forwarded message ----------
> From: James Stauffer <st...@gmail.com>
> Date: 2006. 6. 8 오후 11:14
> Subject: Re: [Q] want to change logging filename as --.log.2006-06-08
> To: Log4J Users List <lo...@logging.apache.org>
>
>
> Do you want the log filename to always have the date in it?
>
> On 6/8/06, oops shin <sh...@gmail.com> wrote:
> > Hi. All
> >
> > I'm using log4j.
> >
> > The dailyRollingFileAppender's logging file is *.log by default.
> >
> > and the next day change file name with postfix(date) when logging content comes.
> >
> > The problem is the exact timing.
> >
> > I have another application that analyse logfile.
> >
> > at next day I want to see yesterday's log, but don't know whether the
> > logfile name was changed or not.
> >
> > ( this log has special purpose, so the logging event doesn't come frequently )
> >
> > As my thought.....
> >
> > if log appender write log at --.log.2006-06-08 and next day
> > --.log.2006-06-09, I have no problem.
> >
> > Is there some solution ?
> > Plz reply with solution ^^
> >
> >
> > Thanks in Advance.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
>
>
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

Fwd: [Q] want to change logging filename as --.log.2006-06-08

Posted by oops shin <sh...@gmail.com>.
Yes. that is what i want exactly....

---------- Forwarded message ----------
From: James Stauffer <st...@gmail.com>
Date: 2006. 6. 8 오후 11:14
Subject: Re: [Q] want to change logging filename as --.log.2006-06-08
To: Log4J Users List <lo...@logging.apache.org>


Do you want the log filename to always have the date in it?

On 6/8/06, oops shin <sh...@gmail.com> wrote:
> Hi. All
>
> I'm using log4j.
>
> The dailyRollingFileAppender's logging file is *.log by default.
>
> and the next day change file name with postfix(date) when logging content comes.
>
> The problem is the exact timing.
>
> I have another application that analyse logfile.
>
> at next day I want to see yesterday's log, but don't know whether the
> logfile name was changed or not.
>
> ( this log has special purpose, so the logging event doesn't come frequently )
>
> As my thought.....
>
> if log appender write log at --.log.2006-06-08 and next day
> --.log.2006-06-09, I have no problem.
>
> Is there some solution ?
> Plz reply with solution ^^
>
>
> Thanks in Advance.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

Re: [Q] want to change logging filename as --.log.2006-06-08

Posted by James Stauffer <st...@gmail.com>.
Do you want the log filename to always have the date in it?

On 6/8/06, oops shin <sh...@gmail.com> wrote:
> Hi. All
>
> I'm using log4j.
>
> The dailyRollingFileAppender's logging file is *.log by default.
>
> and the next day change file name with postfix(date) when logging content comes.
>
> The problem is the exact timing.
>
> I have another application that analyse logfile.
>
> at next day I want to see yesterday's log, but don't know whether the
> logfile name was changed or not.
>
> ( this log has special purpose, so the logging event doesn't come frequently )
>
> As my thought.....
>
> if log appender write log at --.log.2006-06-08 and next day
> --.log.2006-06-09, I have no problem.
>
> Is there some solution ?
> Plz reply with solution ^^
>
>
> Thanks in Advance.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org