| 1 | <?php |
||
| 18 | class Log extends AbstractLog |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Default log file path |
||
| 22 | */ |
||
| 23 | const DEFAULT_FILE_PATH = 'data/log/app.log'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var bool |
||
| 27 | */ |
||
| 28 | private static $useLastFilePath = false; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $filePath |
||
| 32 | */ |
||
| 33 | public function __construct($filePath = null) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $name |
||
| 50 | * @return $this |
||
| 51 | */ |
||
| 52 | public function setName($name) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Set simple message format |
||
| 60 | * |
||
| 61 | * @param string|null $format %timestamp% %priorityName% (%priority%): %message% %extra% |
||
| 62 | * @return $this |
||
| 63 | */ |
||
| 64 | public function setSimpleFormat($format = null) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Set XML message format |
||
| 73 | * |
||
| 74 | * @return $this |
||
| 75 | */ |
||
| 76 | public function setXmlFormat() |
||
| 81 | } |
||
| 82 |