avtonom/remote-logger-bundle

There is no license information available for the latest version (v1.1.4) of this package.

service logger bundle

v1.1.4 2017-05-03 15:58 UTC

This package is not auto-updated.

Last update: 2024-11-13 20:57:02 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