2017 © Pedro Peláez
 

library psr3-adapters

Various PSR3-compatible logging adapters.

image

silinternational/psr3-adapters

Various PSR3-compatible logging adapters.

  • Tuesday, February 6, 2018
  • by fillup
  • Repository
  • 5 Watchers
  • 0 Stars
  • 982 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

PSR-3 Adapters

Various PSR3-compatible logging adapters., (*1)

Adapter-specific notes

Psr3EchoLogger

A basic PSR-3 compliant logger that merely echoes logs to the console (primarily intended for use in tests)., (*2)

This will echo out the log messages, allowing the output to be buffered so that it appears at the expected place within the rest of the output (such as in tests)., (*3)

Psr3FakeLogger

A basic PSR-3 compliant logger that stores log entries in an array. This allows confirmation that logging has occurred using hasLogs and hasSpecificLog methods., (*4)

Psr3SamlLogger

A minimalist wrapper library (for SimpleSAML\Logger) to make it PSR-3 compatible., (*5)

Psr3StdOutLogger

A basic PSR-3 compliant logger that writes logs to stdout. This bypasses any output buffering that PHP may be doing., (*6)

Psr3SyslogLogger

A basic PSR-3 compliant logger that sends logs to syslog., (*7)

Psr3Yii2Logger

A basic PSR-3 compliant logger that sends logs to Yii2's logging functions., (*8)

NOTE: Yii2 only provides error, warning, info, and trace levels, so the PSR-3 log levels were mapped to those on a best-effort basis., (*9)

Make sure your Yii config bootstraps the log component. In other words, include something like this in your Yii config: 'bootstrap' => ['log'], (*10)

The Versions

06/02 2018

dev-master

9999999-dev

Various PSR3-compatible logging adapters.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

06/02 2018

2.0.0

2.0.0.0

Various PSR3-compatible logging adapters.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

05/02 2018

dev-develop

dev-develop

Various PSR3-compatible logging adapters.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

09/05 2017

1.1.0

1.1.0.0

Various PSR3-compatible logging adapters.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

09/05 2017

1.0.0

1.0.0.0

Various PSR3-compatible logging adapters.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson

05/05 2017

0.1.0

0.1.0.0

Various PSR3-compatible logging adapters.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Henderson