Skip to content

Processor to extract Pantheon environment details for Monolog.

License

Notifications You must be signed in to change notification settings

middlebury/monolog-pantheon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

INTRODUCTION

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

About

Processor to extract Pantheon environment details for Monolog.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages