posted 13 years ago
Hi,
It is very simple, if your using Log4J/SLF4J then you can cofigure this fetaure.This framework will take care of all of your requirement even without stoping you code any time.
If you are not using Log4J/SLF4J and you would like to create your own soln then have a look on Appender components of Log4J.
For archive your log files either you can use TimerService OR Quartz which let you execute any code based on time.
Hope that this helps !
Thanks,
Sunil Dixit