developius/logline-php

PHP library for interfacing with LogLine

1.0.0 2016-10-25 19:10 UTC

This package is not auto-updated.

Last update: 2024-10-13 02:12:31 UTC


README

LogLine is an entirely web-based logging platform. This PHP library interfaces with it to allow you to utilise LogLine in your PHP applications.

Installation

composer require developius/logline-php

Example usage

$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";
}

Tests

There is a test script included for testing purposes, it may prove useful, or it may not.