monolog-cascade icon indicating copy to clipboard operation
monolog-cascade copied to clipboard

File permissions on handler

Open aschwin opened this issue 7 years ago • 1 comments

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?

aschwin avatar Dec 06 '17 11:12 aschwin

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

rantonmattei avatar May 15 '18 15:05 rantonmattei