Skip to content

Instantly share code, notes, and snippets.

@fivestar
Created October 21, 2011 10:03
Show Gist options
  • Save fivestar/1303491 to your computer and use it in GitHub Desktop.
Save fivestar/1303491 to your computer and use it in GitHub Desktop.
services.yml
services:
foo.logger:
class: Monolog\Logger
arguments:
- foo_log
calls:
- [ pushHandler, [ @foo.logger.handler ] ]
foo.logger.handler:
class: Monolog\Handler\StreamHandler
arguments:
- %kernel.logs_dir%/foo.log
public: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment