Skip to content
Headless Platform
GitHubDiscordYouTube

Runtime logs

What are runtime logs?

Runtime logs capture a wide range of information generated by your Node.js application during its execution. These logs provide insights into the real-time operations and performance of your application.

They include, but are not limited to:

  1. System events: Information about the starting, stopping, and restarting of your application.
  2. Application errors: Detailed error messages and stack traces that help diagnose issues within your application code.
  3. Custom log messages: Any custom logging implemented within your application to track specific actions or events.

Analyzing runtime logs helps you identify and resolve bugs or issues in the code, ensuring the application runs as expected.

Interacting with runtime logs

To access and review your runtime logs, follow these steps:

  1. Navigate to the Logs tab: Go to the Logs tab within your app environment screen.
  2. Select the time period: In the Runtime logs section, specify the time period for which you want to review the logs. Runtime logs UI Important: Runtime logs for any environment are retained for the past 24 hours.

Log chart

The log chart provides a visual representation of your app’s log activity over time:

  • Color-coded entries: Info logs and error logs are displayed in different colors for quick identification.
  • Deployment markers: Vertical lines on the chart indicate when deployments occurred, allowing you to correlate code changes with log patterns. Hover over deployment markers to view details and access links to deployment information. Time-based filtering

Filtering

To streamline your debugging process, you can easily filter your runtime logs:

  1. Find the Filter button above the log table.
  2. Choose one of the following options:
    • Errors: Shows only error logs
    • Info: Displays only stdout logs

Filter runtime logs

Quickly pinpoint specific issues or events in your logs with our full-text search feature:

  1. Locate the search bar above the log table,
  2. Enter any relevant term, error message, or code snippet,
  3. Hit Enter to confirm.

The log table will instantly filter to show only matching entries.

Search runtime logs

Time-based log filtering

To narrow down your log analysis to specific time windows, find the time selector dropdown near the top of the log viewer and choose from pre-defined time windows:

  • 1 minute
  • 5 minutes
  • 30 minutes
  • 1 hour
  • 6 hours
  • 12 hours
  • 24 hours

Time-based filtering

You can also select a custom length of the time window you want to review by clicking on “Custom” option in the dropdown. Additionally, you can request logs that appeared since the last build of your environment, as long as it happened no longer than 24 hours ago. Time-based filtering

Additionally, you can filter your logs visually by selecting a time frame on the chart, like it’s shown below: Time-based filtering

The log view instantly updates to show only entries within the selected timeframe.