---
title: Capturing logs
description: Send console logs from JavaScript applications to Honeybadger Insights.
url: https://docs.honeybadger.io/lib/javascript/insights/capturing-logs/
---

You can send console logs to Insights either by sending your logs to Honeybadger from your [infrastructure](https://docs.honeybadger.io/guides/insights/) **or** by setting the `eventsEnabled` flag to `true` when configuring Honeybadger:

```javascript
Honeybadger.configure({
  // ...
  eventsEnabled: true,
});
```

This will send all log messages to Honeybadger, where they will be displayed in the [Insights](https://www.honeybadger.io/tour/logging-observability) section of your dashboard.

To send your own application events instead, see [Sending custom events](https://docs.honeybadger.io/lib/javascript/insights/sending-events-to-insights/).

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
