There is no license information available for the latest version (dev-master) of this package.

dev-master 2016-03-17 01:16 UTC

This package is auto-updated.

Last update: 2024-09-11 15:08:48 UTC


README

This handler lets you put logs into Elasticsearch in the Logstash format, which makes visualization with Kibana very easy.

Installation

If you're using composer (and I hope you are), add the contemporaryva/tracker package to your project. Or just run:

$ composer require contemporaryva/tracker

In your project root directory.

Basic Usage

<?php

require 'vendor/autoload.php';

$tracker = new \ContemporaryVA\Tracker\Tracker('timer');

$tracker
    ->setProtocol('http')
    ->setHost('example.com')
    ->setSlug('default')
    ->setPort(8080);

$tracker->log('metric.foo', ['value' => 123456]);