File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /** @var yii\web\View $this */
4+ /** @var string $name */
5+ /** @var string $message */
6+ /** @var Exception$exception */
7+
8+ use yii \helpers \Html ;
9+
10+ $ this ->title = $ name ;
11+ ?>
12+ <div class="site-error">
13+
14+ <h1><?= Html::encode ($ this ->title ) ?> </h1>
15+
16+ <div class="alert alert-danger">
17+ <?= nl2br (Html::encode ($ message )) ?>
18+ </div>
19+
20+ <p>
21+ The above error occurred while the Web server was processing your request.
22+ </p>
23+ <p>
24+ Please contact us if you think this is a server error. Thank you.
25+ </p>
26+
27+ </div>
Original file line number Diff line number Diff line change 77return [
88 'log ' => [
99 'traceLevel ' => YII_DEBUG ? 3 : 0 ,
10+ 'flushInterval ' => 1 ,
1011 'targets ' => [
1112 [
1213 'class ' => yii \log \FileTarget::class,
14+ 'exportInterval ' => 1 ,
1315 'levels ' => ['error ' , 'warning ' ],
1416 'logFile ' => '@logs/console-app.error.log ' ,
1517 'logVars ' => [],
1618 ],
1719 [
1820 'class ' => yii \log \FileTarget::class,
21+ 'exportInterval ' => 1 ,
1922 'levels ' => ['info ' ],
2023 'logFile ' => '@logs/console-app.info.log ' ,
2124 'logVars ' => [],
You can’t perform that action at this time.
0 commit comments