McLogCleaner

McLogCleaner

JuggleGaming JuggleGaming
v1.4.0

127

Downloads

100%

Positive (2 reviews)

3 weeks ago

Last Updated

Manual Plugin Import

  1. Log in to your panels admin area.
  2. Navigate to the Plugins section.
  3. Click the Import from File icon ( )
  4. Upload the downloaded ZIP file and complete the install.

McLogCleaner deletes all .log.gz files and crash reports from the server’s logs folder.

Note: latest.log will always remain intact and is never deleted.

Setup

You install the latest version of McLogCleaner via the Pelican Hub.

If you want to install McLogCleaner manually, you can download the latest release directly.

To use this plugin, add mclogcleaner as a feature to the egg you want to run it with.

Log Deletion Options

When you click Delete logs, a dropdown menu appears where you can choose the minimum age (in days) of log files to delete:

  • Logs older than 7 days
  • Logs older than 30 days
  • All logs (regardless of age)
  • A custom age in days

Command usage

This command allows server administrators to clean up old log files and crash reports directly from the terminal or via scheduled tasks (cronjobs).

php artisan mclogcleaner:clean {server_uuid} [--days=7] [--logs] [--crashes] [--dry-run]
Argument Description Default value
server_uuid Required. The UUID of the server you want to clean up. none
--days Specify how many days of history you want to keep. Files older than this threshold will be deleted. 7
--logs Only clean up compressed log files (.log.gz). both logs and crash reports if none specified
--crashes Only clean up crash reports (crash-*.txt). both logs and crash reports if none specified
--dry-run Simulates the cleanup process. It will list all target files without actually deleting them. false

Requirements

File Size
96.92 KB
License
AGPL-3.0