What are you trying to do? Why don't you configure Log4J to truncate the log files after they reach a maximum size, that way you will be able to control the sizes.
Here is what we are trying to achieve:
1. On a monthly basis we run an archive script that tars/compresses the log files etc... and removes the log files from the directory where it originally resides, making room for the newer logs.
2. We have the log rotation size set too, size is totally under control.
The problem is when we remove the logs files that JBoss is writing, when JBoss is running, they never get recreated.
Is there anyway to make JBoss recreate these logs?
Hope this gives a better picture...