-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi @frqnck
I intend to use this library to write logs to files in JSON format, then have Fluentd / Fluentbit tail these files for further processing.
I'd be interested in the "deferred" option to avoid writing to a file on disk all throughout script execution (seems cleaner to me to make one big write at the end).
However, the current implementation in AbstractLogger, method __destruct seems to just take all messages (strings), throw away the context, and write a single NOTICE entry in the log.
Why is that? I would have expected the deferred method to just process the backlog of log entries and write() them one by one.
Should you maybe clarify the way it works in the README?
Also, is there any technical reason for the "final" keyword on __destruct in AbstractLogger?
Thanks