PHPackages                             graham-campbell/logger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. graham-campbell/logger

Abandoned → [altthree/logger](/?search=altthree%2Flogger)ArchivedLibrary[Framework](/categories/framework)

graham-campbell/logger
======================

Provides Multiple Loggers At Once

v1.1.0(10y ago)7441MITPHPPHP &gt;=5.5.9

Since May 30Pushed 10y agoCompare

[ Source](https://github.com/GrahamDeprecated/Laravel-Logger)[ Packagist](https://packagist.org/packages/graham-campbell/logger)[ RSS](/packages/graham-campbell-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Laravel Logger
==============

[](#laravel-logger)

Laravel Logger was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and provides multiple loggers at once for [Laravel 5](http://laravel.com). Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Laravel-Logger/releases), [license](LICENSE), and [contribution guidelines](CONTRIBUTING.md).

WARNING
-------

[](#warning)

#### This package is no longer maintained.

[](#this-package-is-no-longer-maintained)

[![Laravel Logger](https://cloud.githubusercontent.com/assets/2829600/7818353/17c95822-03d3-11e5-9e0b-48d52cf835d6.png)](https://cloud.githubusercontent.com/assets/2829600/7818353/17c95822-03d3-11e5-9e0b-48d52cf835d6.png)

[![Build Status](https://camo.githubusercontent.com/3e779c4aa7ecf2047f74c0ae6cc16a3c71a89991b53e375edfc90fd8f42682a0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f47726168616d43616d7062656c6c2f4c61726176656c2d4c6f676765722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/GrahamCampbell/Laravel-Logger)[![Coverage Status](https://camo.githubusercontent.com/690306a8cdf1b02a8c1d7c0400667bb1679182408e39950b881cde1d77f2740a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f47726168616d43616d7062656c6c2f4c61726176656c2d4c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Logger/code-structure)[![Quality Score](https://camo.githubusercontent.com/3b43da0e85c151f5be82751b4e869ab805b672499213af1be6985e4c8cfb0877/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f47726168616d43616d7062656c6c2f4c61726176656c2d4c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Logger)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/2131d5d0b10f77f1b1020a1eb317ded1b4fcdec8f2ffc206045accf3ccf47c63/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f47726168616d43616d7062656c6c2f4c61726176656c2d4c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Laravel-Logger/releases)

Installation
------------

[](#installation)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.6+, and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel Logger, simply add the following line to the require block of your `composer.json` file:

```
"graham-campbell/logger": "~1.1"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once Laravel Logger is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `'GrahamCampbell\Logger\LoggerServiceProvider'`

You can register the Logger facade in the `aliases` key of your `config/app.php` file if you like.

- `'Logger' => 'GrahamCampbell\Logger\Facades\Logger'`

Configuration
-------------

[](#configuration)

Laravel Logger supports optional configuration.

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish
```

This will create a `config/logger.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

There is one config option:

##### Loggers

[](#loggers)

This option (`'loggers'`) defines each of the loggers to call under the hood while logging.

Usage
-----

[](#usage)

Laravel logger provides a clean way to log to multiple destinations at once. Simply fill out the config with the psr loggers you want to use, and we'll do the rest. We even allow you to configure which level of messages to send to each logger.

Due to limitations with the way Laravel's setup, we cannot override the `log` instance that's bound to the ioc, so you'll find that still gives you an instance of Laravel's bog standard logger, and Laravel's Log facade will be using that instance too, however we do provide our own facade to use if you'd like.

The main advantage to this package is that we are still able to override the ioc bindings to the psr logger interface and to Laravel's logger contract, so if you're dependency injecting those, you'll get our fancy logger to work with. Brilliant!

An example of where this package can really help you out is in the exception handler. Without you having to make any changes there, you immediately have the ability to log to multiple places as Laravel's injecting our logger into your exception handler because of the binding we have to the psr logger interface.

License
-------

[](#license)

Laravel Logger is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~27 days

Total

2

Last Release

3979d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (8 commits)")

---

Tags

logframeworklaravellogginglogsGraham CampbellGrahamCampbellloggermultiplelaravel logger

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/graham-campbell-logger/health.svg)

```
[![Health](https://phpackages.com/badges/graham-campbell-logger/health.svg)](https://phpackages.com/packages/graham-campbell-logger)
```

###  Alternatives

[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M64](/packages/graham-campbell-markdown)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[graham-campbell/exceptions

Provides A Powerful Error Response System For Both Development And Production

5911.3M4](/packages/graham-campbell-exceptions)[graham-campbell/throttle

Throttle Is A Rate Limiter For Laravel

7102.3M11](/packages/graham-campbell-throttle)[graham-campbell/github

GitHub Is A GitHub Bridge For Laravel

6411.7M19](/packages/graham-campbell-github)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
