• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can we create new log file (per day)  RSS feed

 
sudhakar ananth
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends

I need to create new log file in daily basis...
can any tell me how to and if possible please give the code or......
and like where i get good codes


Thanking you..
bye
Sudhakar
 
Joe Ess
Bartender
Posts: 9429
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Log4j has a rolling file appender which can be configured to rotate on a daily basis.
 
sudhakar ananth
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks friend

but how can we create new file daily basis where we can get the exception...


see it is like Eclipse IDE
where we get .log(new) for every new day
so how can we create a new file every time
on what a basids we can create it
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!