2017 © Pedro Peláez
 

library logger

Send log via pubu.im

image

lxpgw/logger

Send log via pubu.im

  • Monday, March 28, 2016
  • by light
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Logger

Build Status version Download Scrutinizer Code Quality Code Coverage Contact, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist lxpgw/logger "~1.0.0"

or add, (*4)

"lxpgw/logger": "~1.0.0"

to the require section of your composer.json file., (*5)

Usage

send message directly

$pubu = new \lxpgw\logger\Pubu(['remote' => 'your pubu.im service url']);
$logger->send('Hello');

//with attachments
$pubu->send('Hello', [
    ['title' => 'This is title', 'description' => 'This is description.']
]);

with the log component

[
    'log' => [
        'targets' => [
            'class' => \lxpgw\logger\LogTarget,
            'chanel' => 'the pubu.im service url', // Config the channel you want send to.
            'exportInterval' => 1, //send per message directly
            'logVars' => [],
        ]
    ]
]

Tests

$ composer test

Change Log

Please see CHANGELOG for more information what has changed recently., (*6)

License

MIT, (*7)

The Versions

28/03 2016

dev-master

9999999-dev https://github.com/lxpgw/logger

Send log via pubu.im

  Sources   Download

MIT

The Requires

 

The Development Requires

by lichunqiang

logger pubu

28/03 2016

1.0.0

1.0.0.0 https://github.com/lxpgw/logger

Send log via pubu.im

  Sources   Download

MIT

The Requires

 

The Development Requires

by lichunqiang

logger pubu