3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Log\Formatter
;
12 interface FormatterInterface
15 * Default format specifier for DateTime objects is ISO 8601
17 * @see http://php.net/manual/en/function.date.php
19 const DEFAULT_DATETIME_FORMAT
= 'c';
22 * Formats data into a single line to be written by the writer.
24 * @param array $event event data
25 * @return string formatted line to write to the log
27 public function format($event);
30 * Get the format specifier for DateTime objects
34 public function getDateTimeFormat();
37 * Set the format specifier for DateTime objects
39 * @see http://php.net/manual/en/function.date.php
40 * @param string $dateTimeFormat DateTime format
41 * @return FormatterInterface
43 public function setDateTimeFormat($dateTimeFormat);