phppro / log
PHPPRO Log
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 1 409
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=5.3.9
- symfony/framework-bundle: ~2.4|~3.0
- symfony/monolog-bundle: ~2.4|~3.0
This package is not auto-updated.
Last update: 2020-02-07 16:20:52 UTC
README
Installation:
Add phppro/log to your composer.json
:
{ "require": { "phppro/log": "dev-master" } }
Now download the bundle by running the command:
$ php composer.phar update phppro/log
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phppro\Bundle\LogBundle\PhpproLogBundle(), ); }
Usage:
It allows you to configure extra fields to add to each log records.
# config.yml phppro_log: enabled: true handler: main fields: app: foo he: llo # config_dev.yml monolog: handlers: main: type: socket connection_string: udp://127.0.0.1:5565 formatter: phppro_log_formatter level: debug