Laravel Packages / March 15, 2016

Laravel Log Keeper

Laravel Log Keeper helps rotating your logs while storing them anywhere you want with custom local/remote retention policies.

Mathias Grimm the creator of the package said he created this because his company has numerous projects deployed across many servers and they log a lot of data. Over time, this causes the servers to run out of space and they have to manually move these files. By using Laravel Log Keeper the logs are kept on the server for a period of time, then automatically moved off into a dedicated storage system like S3.

Here is an example of some of the configuration this package supports:

LARAVEL_LOG_KEEPER_REMOTE_DISK           = "s3"
LARAVEL_LOG_KEEPER_LOCAL_RETENTION_DAYS  = 3
LARAVEL_LOG_KEEPER_REMOTE_RETENTION_DAYS = 15
LARAVEL_LOG_KEEPER_REMOTE_PATH           = "myproject1-prod-01"

Give it a look if you’d like to automatically move and store your log files.

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.