I want to configure the log sothat the server.log will be backup with time time everyday on a fest time such as on 4 am.
How to do that?
You can't. There is no backup facility built into log4j. You can, however, schedule a script to run at 4AM and back up the previous day's log file.