The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist maxyc/yii2-logyii "*"
or add
"maxyc/yii2-logyii": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
'components' => [
...
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
...
'logyii'=>[
'class' => 'maxyc\logyii\Target',
'baseUrl'=>'http://api.logyii.ru/import/',
'token'=>'000000-0000-0000-0000-0000-0000-0000',
'enableIp'=>true,
'enableTrail'=>true,
'tags'=>['test', 'db']
]
],
],
],
No stable releases.
Comments