Skip to content

Commit 47775e6

Browse files
author
Dominik Haßelkuss
committed
upaded Readme with another example for log config
1 parent eb21012 commit 47775e6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ return [
3434
],
3535
];
3636
```
37+
you can also combine your log targets:
38+
39+
```php
40+
'log' => [
41+
'traceLevel' => YII_DEBUG ? 3 : 0,
42+
'targets' => [
43+
[
44+
'class' => 'yii\log\FileTarget',
45+
'levels' => ['error', 'warning'],
46+
],
47+
[
48+
'class' => 'wepushit\log\SplunkTarget',
49+
'levels' => ['error', 'warning']
50+
],
51+
],
52+
],
53+
```
54+
3755

3856
additionally you should adjust your params-config:
3957

0 commit comments

Comments
 (0)