Skip to content
Documentation

Documentation

Guides for installing and using the Monolog WP-CLI handler in your WP-CLI commands.

Start here

SectionDescription
First logger in WP-CLITutorial: minimal logger in a command.
Use WPCLIHandler in a commandHow-to: add the handler to existing code.
WPCLIHandler referenceConstructor, defaults, and level mapping.
Compatibility policyPHP, Monolog, and WordPress support windows.
FAQsQuiet/debug modes, context output, and background.

Upgrading from the Monolog 2 release line? See UPGRADE.md in the repository.