PHP code example of developius / logline-php
1. Go to this page and download the library: Download developius/logline-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
developius / logline-php example snippets
$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";
}
composer