Open elburro1887 opened 9 years ago
Was this not fixed in release 1.0.1? See PR #9
I just pulled the latest from composer, seems to be still an issue
PRs are welcome.
ok just did some more testing. If i run monolog 1.14.0 with slim-monolog 1.0.1 it works. but 1.15.0 with 1.0.1 does not work
The problem is that there is a
new \Monolog\Handler\StreamHandler('./logs/'.date('y-m-d').'.log')
in the constructor which throws an exception if there is no "./logs/" folder in your project.
To get around this you should define all parameters (name, handlers, processors) and pass false as second argument to the MonologWriter.
I was able to resolve this issue by setting permissions to 777 for my custom log folder. Just adding my 2 cents.
The default constructor option mentioned by @OlivierBerro disappeared in #13.
The newest commit for monolog 1.15.0 breaks my logging:
I get this error:
When I output the $stream in StreamHandler->construct() i get:
It seems like the path concatenation is somehow off.