asinfotrack/yii2-loki-log-target

Loki log target

0.8 2020-09-07 16:25 UTC

This package is auto-updated.

Last update: 2024-10-26 18:38:40 UTC


README

Yii2 log target for loki

Setup

add the log as target

 [
    'class'=>\asinfotrack\yii2\log\LokiTarget::class,
    'levels'=>['error','warning','info'],
    'url'=>'URLTOYOURLOKIAPI/loki/api/v1/push',
    'labels'=>[>
        'MyLabel'=>'Something',
        ...
    ],
],