Skip to content

tokenly/laravel-event-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An event logger for Laravel. Used by various Tokenly services.

Provides api.logApiCalls middleware.

Installation

  • Install with composer require tokenly/laravel-event-log

Usage

use EventLog;

// log events
EventLog::debug('user.loggedIn', ['userId' => $user_id]);

// log exceptions
try {
    // do something here
} catch (Exception $exception) {
    EventLog::logError('action.failed', $e);
}

About

An event logger for Laravel. Used by various Tokenly services.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages