mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
@@ -11,7 +11,7 @@ message | string | The log message. When the `PsrLogMessag
|
||||
level | Monolog\Level case | Severity of the log message. See log levels described in [01-usage.md](01-usage.md#log-levels).
|
||||
context | array | Arbitrary data passed with the construction of the message. For example the username of the current user or their IP address.
|
||||
channel | string | The channel this message was logged to. This is the name that was passed when the logger was created with `new Logger('channel')`.
|
||||
datetime | Monolog\DateTimeImmutable | Date and time when the message was logged. Class extends `\DateTimeImmutable`.
|
||||
datetime | Monolog\JsonSerializableDateTimeImmutable | Date and time when the message was logged. Class extends `\DateTimeImmutable`.
|
||||
extra | array | A placeholder array where processors can put additional data. Always available, but empty if there are no processors registered.
|
||||
|
||||
At first glance `context` and `extra` look very similar, and they are in the sense that they both carry arbitrary data that is related to the log message somehow.
|
||||
|
Reference in New Issue
Block a user