2017 © Pedro PelĂĄez
 

library prmrgt-monolog-formatter

Custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

image

proemergotech/prmrgt-monolog-formatter

Custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

  • Tuesday, October 17, 2017
  • by cherubmiki
  • Repository
  • 6 Watchers
  • 0 Stars
  • 836 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 30 % Grown

The README.md

prmrgt-monolog-formatter

A custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default., (*1)

Installation

  • Install via Composer
composer require proemergotech/prmrgt-monolog-formatter

Usage

This formatter can be added to a Monolog handler as any other formatter. Each logging handler uses a Formatter to format the record before logging it., (*2)

$handler = new Monolog\Handler\StreamHandler(env('LOG_STREAM', '/tmp/stdout.sock'), \Monolog\Logger::DEBUG);
$handler->setFormatter(new PrmrgtLogFormatter(['keyToExtract', 'otherKeyToExract], 'Y-m-d H:i:s'));
$monolog->pushHandler($handler);

You can find more information on handlers, formatters and processors in the official Monolog documentation., (*3)

Contributing

See CONTRIBUTING.md file., (*4)

Credits

This package is developed by MiklĂłs Boros at Pro Emergotech Ltd.., (*5)

License

This project is released under the MIT License., (*6)

The Versions

17/10 2017

dev-master

9999999-dev https://github.com/proemergotech/prmrgt-monolog-formatter

Custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

  Sources   Download

MIT

The Requires

 

The Development Requires

by MiklĂłs Boros

log monolog formatter

17/10 2017

0.1.2

0.1.2.0 https://github.com/proemergotech/prmrgt-monolog-formatter

Custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

  Sources   Download

MIT

The Requires

 

The Development Requires

by MiklĂłs Boros

log monolog formatter

12/10 2017

0.1.1

0.1.1.0 https://github.com/proemergotech/prmrgt-monolog-formatter

Custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

  Sources   Download

MIT

The Requires

 

The Development Requires

by MiklĂłs Boros

log monolog formatter

11/10 2017

0.1.0

0.1.0.0 https://github.com/proemergotech/prmrgt-monolog-formatter

Custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

  Sources   Download

MIT

The Requires

 

The Development Requires

by MiklĂłs Boros

log monolog formatter

11/10 2017

1.0.0

1.0.0.0 https://github.com/proemergotech/prmrgt-monolog-formatter

Custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

  Sources   Download

MIT

The Requires

 

The Development Requires

by MiklĂłs Boros

log monolog formatter