Monolog Wordpress SEQ handler
MonoLog WordPress Seq Handler
Purpose
To allow other plugins or themes to log to an instance of Seq. Of primary interest to organisations or individuals that are already using Seq for log aggregation
Concept
Provide a WordPress plugin that exposes either a logging object or logging hook that other code (e.g. plugins and themes) can call.
Provide configuration of a Seq instance to receive logs via HTTP
Possible approach
- base on Monolog
- create a Monolog Formatter to create correct JSON
- create a Monolog Handler to manage the connection to Seq API
References
- Seq: posting raw events via HTTP
- PHP logging basics
- PHP logging libraries
- PSR3 Logger Interface
- Pierre-Lannoy/wp-decalog
- bradmkjr/monolog-wordpress
- monolog-http/monolog-http
- inpsyde/Wonolog
See also
WordPress | opensource | seq | logging | PHP
#ideas