Send logs and events from PHP apps to Honeybadger Insights
Logs
Instrument your PHP application, either a Lumen, a Laravel or a plain PHP app, to send your logs automatically to Honeybadger Insights. More information can be found here.
Events
If you are using Laravel or Lumen, enable the automatic events instrumentation :
php
'events' => [
'enabled' => true,
'automatic' => HoneybadgerLaravel::DEFAULT_EVENTS,
],
If you have custom events you'd like to track, use Honeybadger.event()
to report them to Insights:
php
Honeybadger.event('button_click', [
'action' => 'buy_now',
'user_id' => 123,
'product_id' => 456
])
More information about sending events to Insights from your PHP apps can be found here.