My Digital Garden

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

See also

WordPress | opensource | seq | logging | PHP

#ideas