Server logs are generated automatically by appending current date

hi,

i have log files in my application , but what happens is the new log file is getting generated by appending date at the back . can i know why this is happening .

thnx in advance
LVL 4
TheMajesticAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omarfaridCommented:
What application is this?

If you have a configuration file for this application you look at something like log rotation or logging file name, etc.

0
TheMajesticAuthor Commented:
this is the script i wrote ,

log4j.logger.com.matrixone.ps.tomcat=debug, R
log4j.additivity.com.matrixone.ps.tomcat=false
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=/apps/WebSphere/pdmprod/AppServer/logs/ActionServletLogs/ExtendedRequestLog.log
log4j.appender.R.DatePattern='.'yyyy-MM-dd
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{ISO8601}\t%p\t%m\n


is this because of the "org.apache.log4j.DailyRollingFileAppender" it is appending the date with the file??

0
TheMajesticAuthor Commented:
the problem now is the files are generating but ,

The data is appending both in ExtendedRequestLog.log and also in ExtendedRequestLog.log_<yesterday_data>.

Why this happenes ???

0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

omarfaridCommented:
KWhat the line below is doing?

log4j.appender.R.DatePattern='.'yyyy-MM-dd
0
TheMajesticAuthor Commented:
That gives the date pattern which should be added to the file .

but the problem now is :  lets sat boo.log is changed to boo_<date>.log at midnight 12.
but still the logs are going in boo_<date>.log and also in boo.log

the another thing is boo.log contains one part of the log and boo_<date>.log contains another part.
0
TheMajesticAuthor Commented:
I found the solution , this happenes because of the Zombie process.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.