Download the PHP package frank-houweling/zend-log-doctrine-writer without Composer
On this page you can find all versions of the php package frank-houweling/zend-log-doctrine-writer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download frank-houweling/zend-log-doctrine-writer
More information about frank-houweling/zend-log-doctrine-writer
Files in frank-houweling/zend-log-doctrine-writer
Package zend-log-doctrine-writer
Short Description Doctrine Writer for Zend Log
License GPL-2.0
Homepage http://www.senet.nl/
Informations about the package zend-log-doctrine-writer
Doctrine Writer for Zend Log
This writer writes log messages to a given doctrine object.
Installation
Use composer to install this module.
After composer installation, make sure that the \FrankHouweling\ZendLogDoctrineWriter module is added to the module configuration.
In most cases, the module configuration can be found in config/module.config.php
Usage
The Doctrine Writer can be used as any Zend Log Writer. It requires an instance of the Doctrine EntityManager, and a valid log entity classname. The log messages will be stored in the given entity, so make sure it is registered to the doctrine entitymanager.
The writer can be used as follows:
A mapping can be given as a third parameter, to change the attributes in which log data is stored.
Example mapping:
A basic entity that can be used for logging can be found in the src/Entity folder of the library.
All versions of zend-log-doctrine-writer with dependencies
doctrine/doctrine-orm-module Version ^2.1
zendframework/zend-log Version ^2.9
zendframework/zend-hydrator Version ^1.1 || ^2.1 || ^3.0