Version: 1.0
A simple API wrapper for EventLog (http://eventlogapp.com).
$logger = new EventLogger('[email protected]', 'password', 'your_app_api_key');
$logger->log('Something went horribly wrong!');
It will default to being an Error Message. You can use any of the default Event Types by using the following constants as the second parameter to log()
:
EventLogger::ERROR
EventLogger::WARNING
EventLogger::NOTICE
EventLogger::SUCCESS
EventLogger::GENERAL
Usage
$logger->log('User Added!', EventLogger::SUCCESS);
You can also use any custom Event Type ID:
$logger->log('What is the meaning of life?', 42);
EventLogger is released under the MIT License and is copyrighted 2011 Dan Horrigan.