Laravel service provider for the Mobly Logger package

Laravel service provider for the Mobly Logger package

README

A simple Laravel 5 service provider for including the Mobly Logger package in your Laravel project.

Installation

The Mobly Logger Service Provider can be installed via Composer running php composer.phar require mobly/logger-laravel:2.* or adding manually in your project’s composer.json:

{
    "require": {
        "mobly/logger": "2.*"
    }
}

Then run a composer update:

php composer.phar update

To use the Mobly Logger Service Provider you must register the provider when bootstrapping your Laravel application.

Find the providers key in you config/app.php and register the Mobly Logger Service Provider as below:

	'providers' => [
		// ...
		MoblyLoggerLaravelLoggerServiceProvider::class,
	]

Find the aliases key in you config/app.php and add the Mobly Logger facades:

	'providers' => [
		// ...
		'MoblyLogger' => MoblyLoggerLaravelFacadesLogger::class,
	]

Links

Source

Add a Comment

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *