4 * This file is part of the Monolog package.
6 * (c) Jordi Boggiano <j.boggiano@seld.be>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Monolog\Formatter;
15 * Interface for formatters
17 * @author Jordi Boggiano <j.boggiano@seld.be>
19 interface FormatterInterface
22 * Formats a log record.
24 * @param array $record A record to format
25 * @return mixed The formatted record
27 public function format(array $record);
30 * Formats a set of log records.
32 * @param array $records A set of records to format
33 * @return mixed The formatted set of records
35 public function formatBatch(array $records);