dev-master
9999999-devsymfony BBITAuditLogBundle
MIT
The Requires
- php >=5.3.2
The Development Requires
by Janssens Sam
0.1
0.1.0.0symfony BBITAuditLogBundle
MIT
The Requires
- php >=5.3.2
The Development Requires
by Janssens Sam
symfony BBITAuditLogBundle
AuditLogBundle is a simple bundle which provides you with a service which you can use to log stuff to the database., (*2)
Sort of like monolog, but using the db instead., (*3)
Add BBITAuditLogBundle in your composer.json: (use the latest stable, NOT dev-master), (*4)
{ "require": { "bbit/auditlog-bundle": "0.1", } }
Now tell composer to download the bundle by running the command:, (*5)
``` bash $ php composer.phar update bbit/auditlog-bundle, (*6)
Composer will install the bundle to your project's `vendor/BBIT` directory. ### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new BBIT\AuditLogBundle\BBITAuditLogBundle(), ); }
php
$logger = $this->get('bbit_audit_log.service'); // get logger service
$logger->log("type", "channel", "logmessage to be inserted");
, (*7)
todo: write tests and check code coverage, (*8)
symfony BBITAuditLogBundle
MIT
symfony BBITAuditLogBundle
MIT