jeyroik/extas-loggers-light

View on GitHub
src/interfaces/loggers/ICanLog.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace extas\interfaces\loggers;

use extas\components\loggers\EMode;
use Monolog\Level;
use Psr\Log\LoggerInterface;

interface ICanLog
{
    public function isDebugModeOn(): bool;
    public function setLogger(LoggerInterface $logger): static;
    public function setMode(EMode $mode): static;
    public function log(string $message, array $context = [], Level $level = Level::Debug);
}