2017 © Pedro Peláez
 

library logger4php

Add log4php in Laravel

image

i3ehrang/logger4php

Add log4php in Laravel

  • Sunday, February 18, 2018
  • by 3ehrang
  • Repository
  • 1 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

Logger4php

Apache log4php in Laravel, (*1)

Laravel Log4php

Package to enable log4php, (*2)

Installation

Update your composer.json file to include this package as a dependency, (*3)

Laravel 5, (*4)

composer require "i3ehrang/logger4php:dev-master"

Register the Logger4php service provider by adding it to the providers array., (*5)

'providers' => array(
    ...
    'I3ehrang\Logger4php\Logger4phpServiceProvider'
)

Alias the Logger4php facade by adding it to the aliases array in the app/config/app.php file., (*6)

'aliases' => array(
    ...
    'Logger4php' => I3ehrang\Logger4php\Facades\Logger4php::class
)

Configuration

Copy the config file from vendor into your project and change it as your own, (*7)

\vendor\i3ehrang\logger4php\src\config\logger4php.php
Optional: copy \vendor\i3ehrang\logger4php\src\log4php.xml to your app\config for customize.

Usage

use Logger4php;

Logger4php::setParams(['user' => 'John', 'id' => '1'])
    ->info();

This package is wrapps Log4php Package for Laravel 5., (*8)

The Versions

18/02 2018

dev-master

9999999-dev

Add log4php in Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Behrang No

laravel log apache log4php