popbox / popbox-loging
Generic Loging for all Popbox Apps
dev-master
2018-11-05 04:25 UTC
Requires
- guzzlehttp/guzzle: ^6.3@dev
- nategood/httpful: *
This package is auto-updated.
Last update: 2024-09-05 18:54:16 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 } }