By default the PaperCut Application Server keeps up to 2048MB of log files (40 files of 50MB 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. Please choose the instructions for your version of PaperCut.
Note: for Site Server log rotation see the KB on enabling Debug on the Site Server.
PaperCut 14.3 (or later) Changing server log rotation for with debug enabled
Login to the PaperCut administration interface Navigate to “Options→Advanced”. In the diagnostics section, check Enable debug mode and increase the amount of logs to keep from the default of 2048MB to something suitable for your site. e.g. 5000MB. NOTE: In most cases 2048MB is enough for diagnostics. Make sure you have enough disk space to store the increased amount of logs. Press “Apply” to save the settings. These changes take effect immediately (no restart required). Changing server log rotation without enabling debug
Login to the PaperCut administration interface Navigate to “Options→Advanced”. Open the Config Editor and search for “system.log.default.keep-mb”. Change the value from the default 100 to something suitable for your site. e.g 500. NOTE: Make sure you have enough disk space to store the increased amount of logs. Press “Update” to save the settings. These changes take effect immediately (no restart required). PaperCut 13.2 - 14.2 Login to the PaperCut administration interface Navigate to “Options→Advanced”. In the diagnostics section, increase the amount of logs to keep from the default of 100MB to something suitable for your site. e.g. 500MB. NOTE: Make sure you have enough disk space to store the increased amount of logs. Press “Apply” to save the settings. These changes take effect immediately (no restart required). How does PaperCut know how many logs to create If the total size of logs is less than 500MB you will have 10 logs of a maximum size of 50MB. If the total size of logs is more than 500MB you will have 50MB logs up to the maximum configured size. PaperCut 13.1 (or earlier) Using a text editor, open the logging configuration file: [app-path]\server\lib\log4j.properties Locate the lines in the file that look like the following: log4j.appender.file.MaxFileSize=10MB log4j.appender.file.MaxBackupIndex=10 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. NOTE: Make sure you have enough disk space to store the increased amount of logs.
Save the text file
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. NOTE: These settings will be reset back to the defaults after PaperCut upgrades.
Articles in this section
- Share ARM64 Drivers from Windows Print Servers
- Printing from Microsoft Edge Browser and other Windows 10 and 11 Store Apps
- Top 10 best practices for implementing Print Quotas in education
- PaperCut Hive and SentinelOne
- Troubleshooting Mobility Print and Lightspeed
- Troubleshooting PaperCut Pocket & Hive Login
- Smooth MFD Upgrades: A Step-by-Step Guide
- PaperCut NG/MF Security Bulletin (December 2024)
- Redirected Printers on Windows Servers
- Windows ARM64 Support across the PaperCut portfolio
Comments
0 comments
Please sign in to leave a comment.