Skip to content

adamgriffiths/eventlogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

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.

About

A simple API wrapper for EventLog

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages