arispati/laravel-log-s3

Laravel library for logging and store it to s3
3,460 3
Install
composer require arispati/laravel-log-s3
Latest Version:v0.1.0
PHP:>=7.2
License:MIT
Last Updated:Mar 18, 2022
Links: GitHub  ·  Packagist
Maintainer: arispati

laravel-log-s3

Laravel library for logging and store it to s3

Requirement

  • PHP >= 7.2
  • Laravel >= 5.6

Installation

  • Install with composer
composer require arispati/laravel-log-s3

Export Configuration

php artisan vendor:publish --provider="Arispati\LaravelLogS3\Providers\LaravelLogS3Provider" --tag="config"
<?php

return [
    'disk' => 's3',
    'path' => 'logs',
    'timezone' => 'Asia/Jakarta'
];

Usage

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();

Testing

 ./vendor/bin/phpunit 

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
v0.1.0 >=7.2 >=5.6 MIT