25/10
2016
Wallogit.com
2017 © Pedro Peláez
PHP library for interfacing with LogLine
LogLine is an entirely web-based logging platform. This PHP library interfaces with it to allow you to utilise LogLine in your PHP applications., (*1)
composer require developius/logline-php
$logline = new LogLine("your-api-key");
if ($logline->info("I'm a sucker for LogLine")){
echo "Log of type info succeeded\n";
}
if ($logline->success("Yeah! It worked")){
echo "Log of type success succeeded\n";
}
if ($logline->warning("Be careful with that")){
echo "Log of type warning succeeded\n";
}
if ($logline->fatal("Oh man, this is bad")){
echo "Log of type fatal succeeded\n";
}
There is a test script included for testing purposes, it may prove useful, or it may not., (*2)