tokenly/laravel-event-log

An event logger provider for Laravel.

v3.2.0 2018-07-16 18:30 UTC

This package is not auto-updated.

Last update: 2024-10-26 16:18:05 UTC


README

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