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

How to get resque log in Monolog? #132

Open
winds1983 opened this issue Sep 22, 2015 · 3 comments
Open

How to get resque log in Monolog? #132

winds1983 opened this issue Sep 22, 2015 · 3 comments

Comments

@winds1983
Copy link

How to get resque log in Monolog?

@danhunsaker
Copy link

Pretty sure BCCResque depends on PHP-Resque's dev-master version already, so you just need to set it up with Monolog as the Logger. The exact method for doing this is in the PHP-Resque README.

@winds1983
Copy link
Author

@danhunsaker Thanks, I was using it like this:

monolog:
    handlers:
        main:
            type:  stream
            path:  "%kernel.logs_dir%/%kernel.environment%.log"
            level: info
            handler: gelf
        resquelog:
            channels: ["bcc"]
            type: stream
            path: "%kernel.logs_dir%/%kernel.environment%_resque.log"
            level: info

I put above content to config_prod.yml, but cannot work.
Because it seems just write resque log to redis, I do not know how to set it with Monolog in Symfony.
https://github.com/chrisboulton/php-resque/blob/master/README.md
Could you give me some sample?

@winds1983
Copy link
Author

Can you help me?

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

2 participants