Documentation Pricing Enterprise
Sign in Sign up
Documentation Pricing Enterprise
Better Stack

Incident management & on-call
Get a call when your website goes down
Status page
Communicate downtime & build trust
Better Stack

Log management
Collect insights across your stack
Guides Questions Comparisons Blog
Work at Better Stack Engineering Security
Documentation
  • Uptime
  • Logs
Uptime
Logs
Explore documentation
  1. Welcome to Logs 👋
  2. Quick start guide
  3. Logs sources
    1. Programming languages
      1. JavaScript & Node.js
        1. Quick start guide
        2. Advanced usage
        3. Frameworks
      2. Python
      3. Ruby & Rails
      4. PHP
      5. Java
      6. .NET
    2. Cloud platforms
    3. Web servers & Load balancers
    4. Operating systems
    5. Databases
    6. Containers & Clusters
    7. Logging & Monitoring tools
    8. HTTP REST API
  4. Integrations
    1. Slack
  5. Log Forwarding
    1. Vector (Recommended)
    2. Fluent Bit
    3. Logstash
    4. Fluentd
    5. Syslog
  6. API
    1. Get started with Logs API
    2. Sources API
    3. Query API
  7. Using Logs
    1. AWS S3-compatible archive
    2. String + JSON format
    3. Live tail query language
    4. Querying data in Better Stack
    5. GeoIP map visualization

JavaScript & Node.js

154085622-59997d5a-3f91-4bc9-a815-3b8ead16d28d.jpeg
154085622-59997d5a-3f91-4bc9-a815-3b8ead16d28d.jpeg

Better Stack provides clients for JavaScript, Node.js, and multiple logging frameworks.
Choose the right approach for you below.

Recommended: Better Stack JavaScript client

Collect logs from browser and Node.js with Better Stack logger.

  • Quick start guide

Already using a logging framework?

  • Pino transport
  • Koa middleware
  • Winston transport
  • Bunyan stream

Using AWS Lambda?

  • Logging in AWS Lambda running Node.js

Using edge runtime (eg. Cloudflare Workers)?

  • Logging in edge runtime

Previous article

Get started with logging

Next article

JavaScript quick start guide

Platform
Enterprise
Uptime
Logs
Solutions
Log management
Uptime monitoring
Incident management
Status page
Resources
Help & Support
Uptime docs
Logs docs
Company
Work at Better Stack
Engineering
Security
Community
Guides
Questions
Comparisons
Blog
Write for us
Integrations
Company
Work at Better Stack
Engineering
Security
Resources
Help & Support
Uptime docs
Logs docs
Compare
Pingdom Pagerduty StatusPage.io Uptime Robot StatusCake Opsgenie VictorOps
From the community
What Is Incident Management? Beginner’s Guide How to Create a Developer-Friendly On-Call Schedule in 7 steps Explained: All Meanings of MTTR and Other Incident Metrics New Relic vs. Splunk: a side-by-side comparison for 2023 Splunk vs Elastic/ELK Stack: The Key Differences to Know

Better Stack lets you see inside any stack, debug any issue, and resolve any incident.

+1 (201) 500-2007 hello@betterstack.com
Terms of Use Privacy Policy GDPR System status
© 2023 Better Stack, Inc.