-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecordInterface.php
More file actions
35 lines (22 loc) · 820 Bytes
/
RecordInterface.php
File metadata and controls
35 lines (22 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
declare(strict_types=1);
namespace SonsOfPHP\Contract\Logger;
use DateTimeImmutable;
/**
* "Record" is a log record, this is what is used by Handlers, Formatters, and Enrichers
*
* @author Joshua Estes <joshua@sonsofphp.com>
*/
interface RecordInterface
{
public function getChannel(): string;
public function withChannel(string $channel): static;
public function getLevel();
public function withLevel(LevelInterface $level): static;
public function getMessage(): string;
public function withMessage(string $message): static;
public function getContext(): ContextInterface;
public function withContext(ContextInterface $context): static;
public function getDatetime(): DateTimeImmutable;
public function withDatetime(DateTimeImmutable $datetime): static;
}