Nutgram accepts as a logger system any adapter that implements the PSR-3
By default, it uses the internal
which is a fall-back "black hole" implementation if no logger is given to it.
To specify a different logger adapter, you need to pass the instance at the bot instantiation. The following example, we
are using the built-in
SergiX44\Nutgram\Logger\ConsoleLogger, that can be used to log the requests to the console.
Useful when used with Polling running mode.
$bot = new Nutgram('TOKEN', [
'logger' => ConsoleLogger::class