popbox/popbox-loging

Generic Loging for all Popbox Apps

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/popbox/popbox-loging

dev-master 2018-11-05 04:25 UTC

This package is auto-updated.

Last update: 2026-02-05 22:02:58 UTC


README

This library used by all PopBox Asia apps for centralized log remotely

Install

composer require popbox/popbox-loging

How to use

class MyController{
    
    function doSomething(){
        $logger = new Popbox\Loging\Log('http://service-url','token');
        $data = array(
            'app_name' => 'APPNAME',
            'types'=> 'INFO',
            'content'=> $params
        );
        $logger->write($data);
        // you can put anything (object) in $params
    }
    
}