laminas / laminas-log

Robust, composite logger with filtering, formatting, and PSR-3 support
https://docs.laminas.dev/laminas-log/
BSD 3-Clause "New" or "Revised" License
26 stars 30 forks source link

Displaying writers logged events #1

Closed weierophinney closed 3 years ago

weierophinney commented 4 years ago

Thanks for this standard logger library, currently using this logger to log events in wordpress and its working fine, though I'm majorly using just the "Stream" writer, I think there should be a beautiful way of displaying logged events from each writer. since all writers has a formatter, and these formatters implement the "Formatter" interface, there is a method "format" called when writing to logs, wouldnt it be beautiful to have "deformat" (dont mind the name) method that re-arrange/restyle the events when you want to display it, then each writer have a method "getErrorlogs" (again dont mind the name ), to show events logged in the writer class.

Already working on an implementation of this, just want to hear from you guys what you think


Originally posted by @rmoayinla at https://github.com/zendframework/zend-log/issues/77

weierophinney commented 4 years ago

Sounds like you need original event which is send to writers back.


Originally posted by @dennybrandes at https://github.com/zendframework/zend-log/issues/77#issuecomment-423608560

weierophinney commented 3 years ago

This package is considered feature-complete, and is now in security-only maintenance mode, following a decision by the Technical Steering Committee. If you have a security issue, please follow our security reporting guidelines. If you wish to take on the role of maintainer, please nominate yourself

If you are looking for an actively maintained package alternative, we recommend: