To backup and truncate all existing file appenders, use the following rhino-console command or related MBean operation.

Note
Overriding default rollover behaviour

The default behaviour for log files is to automatically rollover when they reach 1GB in size. You can instead request rollover at any time, using the rolloverAllLogFiles command. (You can also override the default maximum file size before a log file rolls over and the maximum number of backup files to keep, when creating a file appender).

Console command: rolloverlogfiles

Command

rolloverlogfiles
    Rollover all log file

Example

$ ./rhino-console rolloverLogFiles
Done.

MBean operation: rolloverLogFiles

MBean

Rhino operation

public void rolloverAllLogFiles();
Previous page Next page
Rhino Version 2.5.0