middlebury/monolog-pantheon

Processor to extract Pantheon environment details for Monolog.

Installs: 12 949

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/middlebury/monolog-pantheon

1.0.0 2023-12-01 22:10 UTC

This package is auto-updated.

Last update: 2025-11-29 03:46:08 UTC


README

A Monolog processor to extract Pantheon environment details and add them to extra.

Installation

Install with composer: composer require middlebury/monolog-pantheon

Setup and Configuration

  1. Add this library to your application (and Monolog) with composer.

  2. Add this processor to your monolog service configuration:

     parameters:
       monolog.logger.processors: ['pantheon']
    
     services:
       monolog.processor.pantheon:
         class: Middlebury\MonologPantheon\Processor\PantheonProcessor
    

Your monolog log entries will now be have additional values from the Pantheon environment added to them:

  • extra.pantheon_site_name
  • extra.pantheon_site
  • extra.pantheon_environment
  • extra.pantheon_infrastructure_environment
  • extra.pantheon_deployment_identifier