Componette

Componette

orisai

orisai / nette-monolog

Monolog logger integration for Nette

download-cloud-line composer require orisai/nette-monolog

Orisai
Nette Monolog

Monolog logger integration for Nette

📄 Check out our documentation.

💸 If you like Orisai, please make a donation. Thank you!

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('We are all gonna die.', [
				'exception' => $e,
			]);
		}
	}

}

No release at this moment. Try to create first one.

bar-chart-fill

Statistics

download-cloud-fill
10425
star-fill
4
bug-fill
0
flashlight-fill
102d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.4.0 <8.2.0)
monolog/monolog (^2.3.0|^3.0.0)
nette/di (^3.0.6)
psr/log (^1.1.0|^2.0.0|^3.0.0)
Componette Componette felix@nette.org