Cloud Logging

View, filter, search, and stream Cloud Logging entries from your Firebase project.

Overview

The Cloud Logging viewer displays log entries from your Firebase project with severity badges, timestamps, function names, and expandable JSON payloads. Stream logs in real time or browse historical entries with powerful filtering.

Prerequisites

Stackpane uses the Cloud Logging API v2 to power this feature. It must be enabled in your Google Cloud project.

gcloud services enable logging.googleapis.com --project YOUR_PROJECT_ID
  • Required IAM role: Logs Viewer (roles/logging.viewer) for read access to log entries
  • Cost notes: The first 50 GiB of log ingestion per project per month is free. Beyond that, ingestion is charged per GiB. Log queries through Stackpane do not incur additional charges — only log ingestion (writing logs) is billed.

Log Entry Display

Each log entry shows:

  • Severity badge — color-coded abbreviation indicating the log level
  • Timestamp — with millisecond precision for accurate correlation
  • Function name — the Cloud Function that produced the entry (if applicable)
  • Message — the log message text

Click an entry or the expand chevron to reveal the full JSON payload, pretty-printed and selectable for copying.

Severity Levels

Log entries are tagged with severity levels, each with a color-coded badge:

LevelBadgeColor
DefaultDEFGray
DebugDBGGray
InfoINFGreen
NoticeNOTGreen
WarningWRNYellow
ErrorERRRed
CriticalCRTPurple
AlertALTPurple
EmergencyEMRPurple

Filtering

Severity Filter

Use the severity picker in the filter bar to show only entries at a specific level. Select All Levels to show everything. This is the fastest way to cut through noise and focus on errors or warnings.

Function Name Filter

Filter logs to show entries from a specific Cloud Function:

  1. Use the function name picker in the filter bar.
  2. Function names are fetched from the project’s deployed functions.
  3. This filter is also activated automatically when navigating to logs from the Cloud Functions view.

Type in the search field to filter by text content across all log messages. Results update in real time. Useful for finding specific error messages, request IDs, or document paths.

Date Range

Restrict logs to a specific time window:

  1. Enable the start date and/or end date toggles in the filter bar.
  2. Select the desired timestamps using the date pickers.
  3. Only logs within the specified range are displayed.

Log Streaming

Enable real-time log streaming to monitor activity as it happens:

  1. Click the streaming toggle in the toolbar.
  2. New log entries append to the view automatically.
  3. Click the toggle again to stop streaming.

During streaming, the view stays pinned to the bottom so you always see the latest entries.

Pagination

For historical logs, click Load More to fetch additional pages. Each page loads a batch of log entries in reverse chronological order (newest first).

Export

Export the current filtered log view to a file for offline analysis or sharing with team members. Use the export option in the toolbar to save logs.

Tips

  • Combine severity filter with function name filter to isolate errors from a specific function
  • Use date range filtering to investigate incidents that occurred at a known time
  • Enable streaming during deployments to catch errors in real time
  • Expand log entries to inspect the full JSON payload for debugging structured log data