2017 © Pedro Peláez
 

library flog

Customizing Laravel Log

image

farzinft/flog

Customizing Laravel Log

  • Friday, December 15, 2017
  • by farzinft
  • Repository
  • 0 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

flog

easy way to Customizing laravel log. you can log with custom name, custom format and custom time., (*1)

Usage

Add package to your project, (*2)

composer require farzinft/flog:"dev-master"

add service provider:, (*3)

Flog\FlogServiceProvider::class

then publish config file, (*4)

php artisan vendor:publish --provider='Flog\FlogServiceProvider'

now in flog.php config file you can customize laravel logger and when, (*5)

you attempt to use log such as Log::info() the logger work as you expect parameters in flog.php configuration file., (*6)


return [ /** * Log Path */ 'log_path' => storage_path('logs/' . kebab_case(config('app.name')) . '.log'), /** * Log Format */ 'log_format' => "%datetime% [%level_name%] (%channel%): %message% %context%\n", /** * Daily Log Max Files */ 'max_files' => 5, /** * set jalali Date //for persian date */ 'jalali_date' => false ];

The Versions

15/12 2017

dev-master

9999999-dev

Customizing Laravel Log

  Sources   Download

The Requires

 

by farzin fthi