Skip to content

landau-fg/yii2-datadog-target

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Log Target for Datadog

INSTALL

composer require "lfg\yii2-datadog-target"

USAGE

Add new log target in application configuration:

    'log'           => [
        'targets'    => [
            'datadog' => [
                'class' => 'lfg\DatadogCounter',
                'levels' => ['error', 'warning'],
                'tags' => ['tag1', 'tag2'], // optional
                'metricPrefix' => 'front', // required
            ],
        ],
    ],

TODO

  • Send events to Datadog

LINKS