BBnepal-Accounts/vendor/psr/log/src/NullLogger.php

27 lines
643 B
PHP
Raw Normal View History

2024-07-10 18:28:19 +05:45
<?php
namespace Psr\Log;
/**
* This Logger can be used to avoid conditional log calls.
*
* Logging should always be optional, and if no logger is provided to your
* library creating a NullLogger instance to have something to throw logs at
* is a good way to avoid littering your code with `if ($this->logger) { }`
* blocks.
*/
class NullLogger extends AbstractLogger
{
/**
* Logs with an arbitrary level.
*
2024-09-29 16:59:27 +05:45
* @param mixed[] $context
2024-07-10 18:28:19 +05:45
*
* @throws \Psr\Log\InvalidArgumentException
*/
2024-09-29 16:59:27 +05:45
public function log($level, string|\Stringable $message, array $context = []): void
2024-07-10 18:28:19 +05:45
{
// noop
}
}