avtonom / remote-logger-bundle
service logger bundle
Installs: 912
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- symfony/dependency-injection: ~2.3|3.*
- symfony/monolog-bundle: ~2.4|3.*
This package is not auto-updated.
Last update: 2024-12-11 21:28:33 UTC
README
Page bundle: https://github.com/Avtonom/remote-logger-bundle
To Install
Run the following in your project root, assuming you have composer set up for your project
composer.phar require avtonom/remote-logger-bundle ~1.1
Switching ~1.1
for the most recent tag.
Add the bundle to app/AppKernel.php
$bundles( ... new Avtonom\RemoteLoggerBundle\AvtonomRemoteLoggerBundle(), ...
Configuration configs (config_(dev|prod).yml):
monolog: handlers: avtonom_remote_logger: type: service id: avtonom_remote_logger.monolog.handler channels: ~ level: debug
Functional buffering in development. There unstable work on the server side:
monolog: handlers: avtonom_remote_logger_buffered: type: buffer handler: avtonom_remote_logger channels: ~ level: debug buffer_size: 10 # strongly depends on the time "%avtonom_remote_logger.writing_timeout%"
Configuration options (parameters.yaml):
parameters: avtonom_remote_logger.token: ~ # 123 avtonom_remote_logger.remote_host: ~ # server.com avtonom_remote_logger.use_ssl: ~ # [OPTIONAL] (def: true) avtonom_remote_logger.level: ~ # [OPTIONAL] (def: 100) avtonom_remote_logger.bubble: ~ # [OPTIONAL] (def: true) avtonom_remote_logger.service: ~ # [OPTIONAL] mobile, my_site.com (def: host) avtonom_remote_logger.appname: ~ # [OPTIONAL] cron | js | web | ... (def: web) avtonom_remote_logger.environment: ~ # [OPTIONAL] dev | prod | ... avtonom_remote_logger.writing_timeout: 10 # [OPTIONAL] (def: 10) Write timed-out, data sent for * seconds