2017 © Pedro Peláez
 

library laravel-custom-log

Custom file Log in your Laravel application

image

gabrielapg/laravel-custom-log

Custom file Log in your Laravel application

  • Wednesday, February 14, 2018
  • by GabrielApG
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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, (*1)

References logs and levels, (*2)

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'); } }

The Versions

14/02 2018

dev-master

9999999-dev

Custom file Log in your Laravel application

  Sources   Download

MIT

The Requires

 

by Gabriel Ap. G

laravel log customlog