orisai / nette-monolog
Nette 的 Monolog 日志记录器集成
1.5.0
2024-07-09 08:04 UTC
Requires
- php: 7.4 - 8.3
- monolog/monolog: ^2.3.0|^3.0.0
- nette/di: ^3.0.6
- nette/schema: ^1.1.0
- orisai/exceptions: ^1.1.0
- orisai/nette-di: ^1.2.3
- psr/log: ^1.1.0|^2.0.0|^3.0.0
Requires (Dev)
- brianium/paratest: ^6.3.0
- infection/infection: ^0.26.0|^0.27.0|^0.28.0|^0.29.0
- nette/application: ^3.0.0
- nette/mail: ^3.1.0|^4.0.0
- orisai/coding-standard: ^3.0.0
- phpstan/extension-installer: ^1.0.0
- phpstan/phpstan: ^1.0.0
- phpstan/phpstan-deprecation-rules: ^1.0.0
- phpstan/phpstan-nette: ^1.0.0
- phpstan/phpstan-phpunit: ^1.0.0
- phpstan/phpstan-strict-rules: ^1.0.0
- phpunit/phpunit: ^9.5.0
- staabm/annotate-pull-request-from-checkstyle: ^1.7.0
- tracy/tracy: ^2.8.8
README
Nette Monolog
Monolog 为 Nette 集成的日志记录器
📄 请查看我们的文档。
💸 如果你喜欢 Orisai,请捐赠。感谢您!
use Psr\Log\LoggerInterface; final class ImportantCode { private LoggerInterface $logger; public function __construct(LoggerInterface $logger) { $this->logger = $logger; } public function doSomethingImportant(): void { try { // Dark magic $this->logger->info('Everything is fine!'); } catch (WeHaveAProblemHouston $e) { $this->logger->critical('Dumpster fire!', [ 'exception' => $e, ]); } } }