Laravel library for logging and store it to s3
arispati/laravel-log-s3 is a Laravel package for laravel library for logging and store it to s3.
It currently has 3 GitHub stars and 3.189 downloads on Packagist (latest version v0.1.0).
Install it with composer require arispati/laravel-log-s3.
Discover more Laravel packages by arispati
or browse all Laravel packages to compare alternatives.
Last updated
Laravel library for logging and store it to s3
composer require arispati/laravel-log-s3
php artisan vendor:publish --provider="Arispati\LaravelLogS3\Providers\LaravelLogS3Provider" --tag="config"
<?php
return [
'disk' => 's3',
'path' => 'logs',
'timezone' => 'Asia/Jakarta'
];
use Arispati\LaravelLogS3\Facades\Log;
// create log name
Log::new('new-log');
// enabled to write file
Log::enabled(true);
// logging
Log::debug('Log Start');
// create a timer
Log::timer('log-start');
// logging with timer duration
Log::debugDuration('Log End', 'log-start');
// write to file
Log::write();
./vendor/bin/phpunit