1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 21:26:43 +02:00

Fix minor spelling & grammar issues in docs (#1623)

This commit is contained in:
gnito-org
2022-03-06 10:12:11 -04:00
committed by GitHub
parent c295434c24
commit c0ae588437
3 changed files with 11 additions and 11 deletions

View File

@@ -15,4 +15,4 @@ extra | array | A placeholder array where processors ca
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.
The main difference is that `context` can be supplied in user land (it is the 3rd parameter to `Logger::addRecord()`) whereas `extra` is internal only and can be filled by processors.
The reason processors write to `extra` and not to `context` is to prevent overriding any user provided data in `context`.
The reason processors write to `extra` and not to `context` is to prevent overriding any user-provided data in `context`.