2017 © Pedro PelĂĄez
 

library yii2-papertrail-log-target

Minimal implementation of Yii2 log target sending messages to Papertrail

image

rekurzia/yii2-papertrail-log-target

Minimal implementation of Yii2 log target sending messages to Papertrail

  • Sunday, January 22, 2017
  • by ujovlado
  • Repository
  • 1 Watchers
  • 2 Stars
  • 894 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 57 % Grown

The README.md

Yii2 Papertrail log target

Build Status Latest Stable Version Total Downloads License, (*1)

Yii2 log target which sends log messages to Papertrail., (*2)

Installation

composer require rekurzia/yii2-papertrail-log-target

Usage

Add new target to your configuration:, (*3)

$config['components']['log']['targets'] = [
    [
        'class' => Rekurzia\Log\PapertrailTarget::class,
        'levels' => ['error', 'warning'],
        'host' => 'logs[xxx].papertrailapp.com',
        'port' => '1234',
        'additionalPrefix' => function() {
            return Yii::$app->id;
        },
    ],
];

Configuration options

host and port

Host and port of your Papertrail log destination., (*4)

additionalPrefix

Optional. A PHP callable which allows you to add additional prefix. Useful when [ip][userI][sessionId] is not enough. Setting as in example above, additional prefix [yourApplicationId] will be added., (*5)

includeContextMessage

Optional. Whether to include also context message. Defaults to false., (*6)

Sample output

Sample output screenshot, (*7)

Usage of additionalPrefix highlighted., (*8)

License

MIT. See license file., (*9)

The Versions

22/01 2017

dev-master

9999999-dev https://github.com/rekurzia/yii2-papertrail-log-target

Minimal implementation of Yii2 log target sending messages to Papertrail

  Sources   Download

MIT

The Requires

 

The Development Requires

by VladimĂ­r KriĆĄka

log yii2 papertrail target

22/01 2017

v0.10.0

0.10.0.0 https://github.com/rekurzia/yii2-papertrail-log-target

Minimal implementation of Yii2 log target sending messages to Papertrail

  Sources   Download

MIT

The Requires

 

The Development Requires

by VladimĂ­r KriĆĄka

log yii2 papertrail target

21/01 2017

v0.9.0

0.9.0.0 https://github.com/rekurzia/yii2-papertrail-log-target

Minimal implementation of Yii2 log target sending messages to Papertrail

  Sources   Download

MIT

The Requires

 

The Development Requires

by VladimĂ­r KriĆĄka

log yii2 papertrail target