I'm using monolog 2.9 and I'm looking for an easy way to overwrite a log file.
My use case is that I have processes that run in frequent intervals, and I want to be able to capture both the full log for all operations, as well as the "last log" for the latest iteration.
I fussed into the StreamHandler, and it it always fopens the file in append more.
I tried creating a custom handler, but it seems that visibility for some required methods is restricted to private.
Hello there!
I'm using monolog 2.9 and I'm looking for an easy way to overwrite a log file. My use case is that I have processes that run in frequent intervals, and I want to be able to capture both the full log for all operations, as well as the "last log" for the latest iteration.
I fussed into the StreamHandler, and it it always
fopen
s the file in append more. I tried creating a custom handler, but it seems that visibility for some required methods is restricted toprivate
.