Allison is coding...

Solving the Aria2 Log File Size Issue

Recently, I unexpectedly found that the aria2.log file was over 20 GB. A quick search revealed that a similar issue had been reported on GitHub: aria2c logging is too large · Issue #2 · wahyd4/aria2-ariang-docker .

The solution is straightforward: open the aria2.conf file and change log-level=info to log-level=error. If log-level was not previously set, simply add log-level=error. This ensures that only error-related log information is recorded. The existing aria2.log file can be deleted, and a new one will be created.

When configuring Aria2 from scratch in the future, remember to add log-level=error to aria2.conf from the beginning to prevent the log file from becoming excessively large.