|
|
Changing Application Server Log Rotation
By default the PaperCut Application Server keeps up to 100MB of log files (10 files of 10MB in size).
When debug logging is enabled on sites with a large volume of printing or a heavy use of hold release queues they may find that the logs rotate very quickly (e.g. in less than 20 minutes). This can cause problems when PaperCut support is trying to help diagnose problems because the logs rotate too quickly, meaning the important data is rotated/deleted before it can be captured.
It is simple to change the amount of logging retained by PaperCut. To do this:
1. Using a text editor, open the logging configuration file: [app-path]\server\lib\log4j.properties
2. Locate the lines in the file that look like the following:
log4j.appender.file.MaxFileSize=10MB log4j.appender.file.MaxBackupIndex=10
3. These settings determine the size of each log file, and the number of log files to keep. The settings above will keep 100MB of logs (10 x 10MB files). Change this setting to increase the amount of logs kept. To keep up to 1GB of logs you could change the MaxFileSize setting to 100MB, or alternatively change you could change MaxBackupIndex index to retain more logs.
3. Save the text file
4. Restart the PaperCut Application Server service (On Windows do this in Control Panel->Admin Tools->Services).
After the restart your PaperCut application server will collect more log data.
Categories: Debugging
Keywords: log, rotate, logs, debug, delete
Comments
Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.