RE: Change Scarab log file name when tomcat start and stop in windows

FRED.YY.LIN 林宥延 <[email protected]> Fri, 12 Feb 2010 15:45:27 +0800
Newsgroups gmane.comp.java.scarab.user
Message-ID <[email protected]>
I make it work by changing the properties file as

log4j.appender.scarab =3D org.apache.log4j.DailyRollingFileAppender
log4j.appender.scarab.file =3D ${applicationRoot}/logs/scarab.log
log4j.appender.scarab.DatePattern =3D '.'yyyy-MM-dd=20

And the log will be changed file name daily automatically.

Fred
-----Original Message-----
From: FRED.YY.LIN =E6=9E=97=E5=AE=A5=E5=BB=B6 [mailto:[email protected]=
.TW]=20
Sent: Friday, February 12, 2010 2:28 PM
To: [email protected]
Subject: Change Scarab log file name when tomcat start and stop in windows

Dear All,

I would like to modify
Log4j.properties line 29

log4j.appender.scarab.file =3D ${applicationRoot}/logs/scarab.log

to make the log file change file name when tomcat restart in the windows pl=
atform using the tomcat monitor dialogue.


What will be the variable to get the system time for property file use ?

Just like change it to=20

log4j.appender.scarab.file =3D ${applicationRoot}/logs/scarab-${XXXX}.log

What can XXXX be to get the system time ?  DATE, TIME, SYSTEM_TIME ?

Regards,

Fred

***************************************************************************=
**********************************************
This email message, including any attachments, is for the sole use of the i=
ntended recipient(s) and may contain confidential and privileged informatio=
n. Any unauthorized review, use, disclosure or distribution is prohibited. =
If you are not the intended recipient, please contact the sender by reply e=
-mail and destroy all copies of the original message. [Delta Electronic, IN=
C. Taiwan]
***************************************************************************=
**********************************************

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3D456&dsMessageId=3D24=
47000

To unsubscribe from this discussion, e-mail: [[email protected]=
is.org].

***************************************************************************=
**********************************************
This email message, including any attachments, is for the sole use of the i=
ntended recipient(s) and may contain confidential and privileged informatio=
n. Any unauthorized review, use, disclosure or distribution is prohibited. =
If you are not the intended recipient, please contact the sender by reply e=
-mail and destroy all copies of the original message. [Delta Electronic, IN=
C. Taiwan]
***************************************************************************=
**********************************************

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3D456&dsMessageId=3D24=
47006

To unsubscribe from this discussion, e-mail: [[email protected]=
is.org].