Home > eventlogger

eventlogger

Eventlogger is a project mainly written in PHP, it's free.

A simple API wrapper for EventLog

EventLogger

Version: 1.0

A simple API wrapper for EventLog (http://eventlogapp.com).

Usage

Basic Usage

$logger = new EventLogger('[email protected]', 'password', 'your_app_api_key');
$logger->log('Something went horribly wrong!');

Event Types

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);

License

EventLogger is released under the MIT License and is copyrighted 2011 Dan Horrigan.