Skip to content

Commit

Permalink
Merge pull request #1 from tunecino/patch-1
Browse files Browse the repository at this point in the history
[Feature] Logging to Google Stackdriver
  • Loading branch information
prawee authored Mar 15, 2019
2 parents 91712ea + dd4d3ab commit aeeb7ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'class' => 'i8\modules\v1\ApiModule'
]
],
'bootstrap' => ['log'],
'components' => [
'db' => $db,
'user' => [
Expand Down Expand Up @@ -54,6 +55,15 @@
]
]
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\SyslogTarget',
'levels' => ['error', 'warning'],
],
],
],
'cache' => [
'class' => 'yii\caching\MemCache',
'useMemcached' => true
Expand Down

0 comments on commit aeeb7ac

Please sign in to comment.