tokenly/laravel-event-log

为 Laravel 提供的事件记录器。

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

This package is not auto-updated.

Last update: 2024-09-14 15:47:46 UTC


README

Laravel 的事件记录器。被各种 Tokenly 服务使用。

提供 api.logApiCalls 中间件。

安装

  • 使用 composer require tokenly/laravel-event-log 安装

使用方法

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