mobly/logger-laravel

Laravel service provider for the Mobly Logger package

2.0.0 2015-10-29 12:35 UTC

This package is not auto-updated.

Last update: 2024-10-26 18:44:02 UTC


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' => [
		// ...
		Mobly\LoggerLaravel\LoggerServiceProvider::class,
	]

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

	'providers' => [
		// ...
		'MoblyLogger' => Mobly\LoggerLaravel\Facades\Logger::class,
	]

Links