LaravelPackages.net
Acme Inc.
Toggle sidebar
gabrielapg/laravel-custom-log

Custom file Log in your Laravel application

12
0
About gabrielapg/laravel-custom-log

gabrielapg/laravel-custom-log is a Laravel package for custom file log in your laravel application. It currently has 0 GitHub stars and 12 downloads on Packagist. Install it with composer require gabrielapg/laravel-custom-log. Discover more Laravel packages by gabrielapg or browse all Laravel packages to compare alternatives.

Last updated

README

Custom Write file Logs

Composer required

composer require "gabrielapg/laravel-custom-log @dev"

Import trait CustomWriteLogs

use CustomWriteLogs;

Write log

    $this->writeLog('customLog', 'description: Description your log');

First param define name file log and secound param define description log. Level default INFO

References logs and levels

Example in Controller


namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use Log\CustomWriteLogs;

class ExampleController extends Controller
{
    use CustomWriteLogs;

    /**
     * Index 
     *
     */
    public function index()
    {
        $this->writeLog('customLog', 'description: Description your log');
    }
}
Comments