| Total Complexity | 6 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class ErrorsTarget extends Target |
||
| 23 | { |
||
| 24 | // Public Properties |
||
| 25 | // ========================================================================= |
||
| 26 | |||
| 27 | // Public Methods |
||
| 28 | // ========================================================================= |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | */ |
||
| 33 | public function init() |
||
| 34 | { |
||
| 35 | parent::init(); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Processes the given log messages. |
||
| 40 | * This method will filter the given messages with [[levels]] and |
||
| 41 | * [[categories]]. And if requested, it will also export the filtering |
||
| 42 | * result to specific medium (e.g. email). |
||
| 43 | * |
||
| 44 | * @param array $messages log messages to be processed. See |
||
| 45 | * [[Logger::messages]] for the structure of each |
||
| 46 | * message. |
||
| 47 | * @param bool $final whether this method is called at the end of the |
||
| 48 | * current application |
||
| 49 | * |
||
| 50 | * @throws \yii\base\ExitException |
||
| 51 | */ |
||
| 52 | public function collect($messages, $final) |
||
| 66 | } |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @inheritdoc |
||
| 71 | */ |
||
| 72 | public function export() |
||
| 76 |