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

Website monitoring
Monitor any web. Check every user flow.
Incident management & on-call
Get a call when your website goes down
Status page
Communicate downtime & build trust
Incident silencing
Reduce alert noise & prevent alert fatigue
Slack-based incident management
Resolve incidents directly in Slack
Better Stack

Log management
Collect insights across your stack
Observability dashboards
Analyze metrics across your services
Community home Guides Questions Comparisons Blog
Work at Better Stack Engineering Security
  • 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
          1. Next.js
          2. Pino
          3. Koa
          4. Winston
          5. Bunyan
      2. Python
      3. Ruby & Rails
      4. PHP
      5. Java
      6. .NET
    2. Cloud platforms
    3. Web servers & Load balancers
    4. Operating systems
    5. Databases & Message queues
    6. Containers & Clusters
    7. Logging & Monitoring tools
    8. HTTP REST API
  4. Log Forwarding
    1. Vector (Recommended)
    2. Fluent Bit
    3. Logstash
    4. Fluentd
    5. Filebeat
    6. Syslog
  5. Dashboards
    1. SQL queries
    2. Query variables
    3. Transforming with JavaScript
    4. Alerts
  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. Formatting logs
    4. Live tail query language
    5. Explore logs with SQL
    6. Querying data in Better Stack

JavaScript logging frameworks

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

Better Stack provides clients for Pino, Koa, Winston, and Bunyan JavaScript logging frameworks. Choose a framework you are using below:

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

Not using a logging framework?

Collect logs from browser and Node.js with Logtail logger.

  • Logtail JavaScript client

Previous article

JavaScript advanced usage

Next article

Better Stack Next.js client

Platform
Enterprise
Uptime
Logs
Solutions
Log management
Uptime monitoring
Website monitoring
Incident management
Status page
Incident silencing
Slack-based incident management
Dashboards
Integrations
Resources
Help & Support
Uptime docs
Logs docs
Company
Work at Better Stack
Engineering
Security
Community
Guides
Questions
Comparisons
Blog
Write for us
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 8 Best Free & Open Source Status Page Tools in 2024 10 Best API Monitoring Tools in 2024 5 Most Used Incident Management Tools (Reviewed & Ranked)

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
© 2024 Better Stack, Inc.