silinternational / psr3-adapters
Various PSR3-compatible logging adapters.
Installs: 12 289
Dependents: 8
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 2
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- psr/log: ^1.0
Requires (Dev)
- monolog/monolog: ^1.22
- phpunit/phpunit: ^9.0
- roave/security-advisories: dev-master
- simplesamlphp/simplesamlphp: ^1.15.2
- yiisoft/yii2: ^2.0
Suggests
- monolog/monolog: ^1.22
- simplesamlphp/simplesamlphp: ^1.15.2
- yiisoft/yii2: ^2.0
README
Various PSR3-compatible logging adapters.
Adapter-specific notes
Psr3ConsoleLogger
- Since this is ambiguous regarding whether logged messages are affected by
PHP's output buffering, we recommend using either
Psr3EchoLogger
orPsr3StdOutLogger
instead.
Psr3EchoLogger
- This
echo
es 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).
Prs3StdOutLogger
- This writes to stdout, bypassing any output buffering that PHP might be doing.
Psr3Yii2Logger
- Make sure your Yii config bootstraps the
log
component. In other words, include something like this in your Yii config:'bootstrap' => ['log']