mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-17 06:36:48 +02:00
24 lines
502 B
PHP
24 lines
502 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Monolog package.
|
|
*
|
|
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Monolog\Formatter;
|
|
|
|
use Monolog\Logger;
|
|
|
|
class JsonFormatter implements FormatterInterface
|
|
{
|
|
public function format($message)
|
|
{
|
|
$message['message'] = json_encode($message['message']);
|
|
return $message;
|
|
}
|
|
}
|