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

File permissions on handler #80

Open
aschwin opened this issue Dec 6, 2017 · 1 comment
Open

File permissions on handler #80

aschwin opened this issue Dec 6, 2017 · 1 comment

Comments

@aschwin
Copy link

aschwin commented Dec 6, 2017

I believe Monolog handlers do support the $filePermission argument. However, I can't get it configured from the JSON configuration settings for a handler.

How do I pass the argument correctly so the handler will create the log file with the correct permissions?

@rantonmattei
Copy link
Contributor

rantonmattei commented May 15, 2018

Cascade takes any arguments from the constructor of the handler.
See example in the ReadMe and/or the handlers section below. Any constructor args can be passed you may use camel case or underscored case in your param names.

handlers:
    info_file_handler:
        class: Monolog\Handler\StreamHandler
        level: INFO
        formatter: dashed
        stream: ./example_info.log
        file_permission: 455

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