Deep-dive on the Next Gen Platform. Join the Webinar!

Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Heroku Blog

    Find out what's new with Heroku on our blog.

    Visit Blog
  • Log inorSign up
Hide categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Working with Node.js
      • Troubleshooting Node.js Apps
      • Node.js Behavior in Heroku
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • PHP Behavior in Heroku
      • Working with PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Working with AI
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Developer Tools
  • Heroku VS Code Extension
  • View App Logs in VS Code

View App Logs in VS Code

Last updated March 05, 2025

Table of Contents

  • Prerequisites
  • Stream App Logs in VS Code
  • Understanding the Log Stream
  • Manage Log Sessions
  • Troubleshooting Log Sessions

App logs are available in the Heroku VS Code extension. Use logs to debug and track the performance of your Heroku apps.

Prerequisites

  • VS Code with the Heroku extension installed
  • An authenticated Heroku session
  • At least one running Heroku application

Stream App Logs in VS Code

You can stream logs with the apps explorer or with the quick action button. The log buffer retrieves the last 100 lines if available. If network issues occur, the extension automatically attempts to reconnect.

Stream Logs with the Apps Explorer

  1. Open the Heroku extension in the Activity Bar.
  2. Right-click on the app in the Heroku Resource Explorer.
  3. Select Start log session. Start log session on app

Stream Logs with the Quick Action Button

  1. Open the Heroku extension in the Activity Bar.
  2. Click the Start log session icon next to the app in the Heroku Resource Explorer. Start log session icon in Resource Explorer

Understanding the Log Stream

When you start a log session, the Output panel displays:

  • A confirmation message: Log session started for {app-name}.
  • Real-time log entries, including:
    • Timestamps
    • Log levels
    • Source identifiers
    • Message content

Log Stream in Output panel

Manage Log Sessions

You can pause, resume, or end log sessions as needed.

Pause and Resume Log Sessions

To pause a log session:

  1. Right-click on the app in the Heroku Resource Explorer.
  2. Select End log session.

To resume streaming logs, start a new log session.

End a Log Session

To stop a log stream:

  1. Right-click on the app in the Heroku Resource Explorer.
  2. Select End log session.

Alternatively, you can hover over the app name in the Heroku Resource Explorer and select the debug-disconnect icon.

Troubleshooting Log Sessions

If you encounter issues logging:

  • Check your network connection.
  • Verify your Heroku authentication status.
  • Ensure your application is running.
  • Try pausing and restarting the log session.

Keep reading

  • Heroku VS Code Extension

Feedback

Log in to submit feedback.

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices