1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-20 16:16:37 +02:00

Renamed message to record

This commit is contained in:
Jordi Boggiano
2011-02-25 22:54:01 +01:00
parent efc2bd656b
commit 6c24217c56
16 changed files with 175 additions and 176 deletions

View File

@@ -12,22 +12,22 @@
namespace Monolog\Processor;
/**
* Injects url/method and remote IP of the current web request in all messages
* Injects url/method and remote IP of the current web request in all records
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
class WebProcessor
{
public function __invoke($message, $handler)
public function __invoke($record, $handler)
{
$message['extra'] = array_merge(
$message['extra'],
$record['extra'] = array_merge(
$record['extra'],
array(
'url' => $_SERVER['REQUEST_URI'],
'ip' => $_SERVER['REMOTE_ADDR'],
'method' => $_SERVER['REQUEST_METHOD'],
)
);
return $message;
return $record;
}
}