Skip to content

Plug and play module to set up a SS installation to log in a docker context.

License

Notifications You must be signed in to change notification settings

mediasuitenz/silverstripe-dockerlogging

Repository files navigation

Docker log handler

Plug-and-play log handler for routing Silverstripe logs to stdout as Docker expects.

This is an opinionated module that:

  • routes all logs to stdout
  • formats them as json
  • adds 'source', always set to 'silverstripe'
  • adds 'timestamp', an ISO86001 UTC date
  • adds 'severity', lowercased log level

For Silverstripe 4.x and Monolog 1.x

Installation

composer require madecurious/silverstripe-dockerlogging

About

Plug and play module to set up a SS installation to log in a docker context.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages