Skip to content
Paul Bunyan Message Logger by Diamond Sierra

Logging from your code

  • Logging functions

    The paul_bunyan_ functions you call from your own plugin or theme, with their arguments and examples.

  • Log without depending on Paul Bunyan

    Use the paul_bunyan_log action in code you ship to others. It logs when Paul Bunyan is active and does nothing when it is not.

  • Time your own code with paul_bunyan_scope

    Paul Bunyan times functions attached to hooks on its own. Wrap any other block of code in paul_bunyan_scope() to time it too.

  • Context, events and markers

    Tie work across many requests into one trail with paul_bunyan_context, record business events with paul_bunyan_event, and mark deploys with paul_bunyan_mark.

  • Paul Bunyan from the command line (WP-CLI)

    The wp pb commands: check status, turn recording on and off, list what to fix first, print the AI report, and log a message from a deploy script.