Skip to content

Commit 17eac8f

Browse files
authored
chore(logging): update composer dependencies and adjust loggable behavior (#40)
1 parent 3d643a3 commit 17eac8f

File tree

2 files changed

+39
-23
lines changed

2 files changed

+39
-23
lines changed

composer.lock

Lines changed: 34 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Logging/Behavioral/Loggable.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace KaririCode\Contract\Logging\Behavioral;
66

77
use KaririCode\Contract\Logging\LogLevel;
8+
use Psr\Log\LoggerInterface;
89

910
/**
1011
* Loggable interface.
@@ -19,16 +20,18 @@
1920
*
2021
* @see https://kariricode.org/
2122
*/
22-
interface Loggable
23+
interface Loggable extends LoggerInterface
2324
{
2425
/**
2526
* Logs with an arbitrary level.
2627
*
2728
* @param LogLevel $level the log level
2829
* @param string|\Stringable $message the log message
2930
* @param array $context additional context for the log message
31+
*
32+
* @throws \Psr\Log\InvalidArgumentException
3033
*/
31-
public function log(LogLevel $level, string|\Stringable $message, array $context = []): void;
34+
public function log($level, string|\Stringable $message, array $context = []): void;
3235

3336
/**
3437
* Logs a debug message.

0 commit comments

Comments
 (0)