PHPackages                             vcomedia/vco-zf-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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. vcomedia/vco-zf-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

vcomedia/vco-zf-logger
======================

Zend Framework 2 logger module.

035PHP

Since Oct 1Pushed 9y ago2 watchersCompare

[ Source](https://github.com/vcomedia/vco-zf-logger)[ Packagist](https://packagist.org/packages/vcomedia/vco-zf-logger)[ RSS](/packages/vcomedia-vco-zf-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

VcoZfLogger - Zend Framework 2 logger module.
---------------------------------------------

[](#vcozflogger---zend-framework-2-logger-module)

Wrapper for Zend/Logger/Log which allows users to track exceptions, add default "extra" attributes, automatic injection of mail transport for the mail writer and automatic mongoClient injection from doctrine odm for the mongo writer. Inspired by eddiejaoude/zf2-logger.

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

[](#installation)

### Composer

[](#composer)

- Install [Composer](http://getcomposer.org/doc/00-intro.md)
- Install the module using Composer into your application's vendor directory. Add the following line to your `composer.json`.

```
{
   "require": {
       "vcomedia/vco-zf-logger": "dev-master"
   }
}
```

- Execute `composer update`
- Enable the module in your ZF2 `application.config.php` file.

```
return array(
    'modules' => array(
        'VcoZfLogger'
    )
);
```

- Copy and paste the `vco-zf-logger/config/module.vco-zf-logger.local.php.dist` file to your `config/autoload` folder and customize it with your configuration settings. Make sure to remove `.dist` from your file. Your `module.vco-zf-logger.local.php` might look something like the following:

```
