Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "monolog:channels" configuration option #39

Closed
Seldaek opened this issue Apr 12, 2013 · 5 comments
Closed

Add a "monolog:channels" configuration option #39

Seldaek opened this issue Apr 12, 2013 · 5 comments

Comments

@Seldaek
Copy link
Member

Seldaek commented Apr 12, 2013

Defining custom channels for use in controllers right now is impossible since they are created automatically. Having a way to define additional channels from the configuration would be easier to handle. See http://stackoverflow.com/questions/15966140/symfony-2-1-switch-monolog-channel-in-controller

@fieg
Copy link

fieg commented Jun 25, 2013

+1

2 similar comments
@arseniosiani
Copy link

+1

@winterstefan
Copy link

+1

@bandroidx
Copy link

+10

@Seldaek
Copy link
Member Author

Seldaek commented Jul 29, 2013

You can now define extra channels as:

monolog:
    channels: ["foo", "bar"]

And then use in a controller for example as $this->get("monolog.logger.foo");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants