Yii::$app->i18n->format('Logged {n,plural,=1{1 message} other{# messages}}', ['n' => count($data['messages'])], 'en-US')]; $errorCount = count(Target::filterMessages($data['messages'], Logger::LEVEL_ERROR)); $warningCount = count(Target::filterMessages($data['messages'], Logger::LEVEL_WARNING)); if ($errorCount) { $titles['errors'] = Yii::$app->i18n->format('{n,plural,=1{1 error} other{# errors}}', ['n' => $errorCount], 'en-US'); } if ($warningCount) { $titles['warnings'] = Yii::$app->i18n->format('{n,plural,=1{1 warning} other{# warnings}}', ['n' => $warningCount], 'en-US');; } ?>
Log