Created
September 10, 2017 21:07
-
-
Save emir/d2a4aa0f5d67fecf00f6b0b23daef962 to your computer and use it in GitHub Desktop.
LogPusher Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
$pusher = new \LogPusher\LogPusherClient( | |
new \GuzzleHttp\Client([]), | |
'hello@logpusher.com', | |
'PASSWORD', | |
'API_KEY' | |
); | |
$pusher->push( | |
'My awesome log message', | |
'myawesomesite.com', | |
'E-commerce', | |
'Notice', | |
date('H:i'), | |
new \DateTime('now'), | |
'1' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment