Skip to main content

Debugging and logging in Blocks

Log in to add to favourites

Page last updated 23 January 2026

This guide explains how to debug Blocks and access logs, and outlines the supported scope of Block-level logging.

Supported logging scope

Contensis provides basic operational logging for Blocks to help diagnose simple issues such as:

  • application startup failures
  • runtime errors
  • request handling problems

Block logging is not intended to replace full application logging or observability tooling.

For production-grade logging, tracing, and monitoring, you should integrate a third-party logging solution directly into your application.

Viewing Block logs

Block logs can be viewed using the Contensis UI or the Contensis CLI.

Viewing Block logs using the Contensis UI

Users with the required permissions can view the console logs of Blocks from the Blocks screen inside Contensis.

See our article on viewing the console logs for a Block for more information and a step-by-step guide.

Viewing Block logs using the CLI

Shell
get block logs <site> <branch> --follow

This command:

  • retrieves recent logs
  • streams new log output
  • shows logs from all data centres

Common debugging steps

  1. Run the container locally
    If the issue occurs locally, it is not Block-specific.
  2. Check manifest.json
    Ensure port and routing settings match your application.
  3. Verify routing configuration
    Confirm Site View nodes and renderers are correctly mapped.
  4. Review logs across all data centres
    Errors may appear in only one location.

Third-party logging solutions

For advanced logging, metrics, and alerting, integrate a third-party service into your application.

Common options include:

  • Loggly – hosted log aggregation and search
  • Datadog – logs, metrics, and application performance monitoring
  • New Relic – application monitoring and distributed tracing
  • Splunk – enterprise log aggregation and analytics
  • Elastic Stack (ELK) – self-hosted or managed logging and search

These tools allow you to:

  • centralise logs
  • correlate errors across services
  • set alerts and dashboards
  • retain logs long-term

Recommendations

Use Contensis Block logs for:

  • basic validation
  • early troubleshooting
  • environment verification

Use third-party tooling for:

  • production monitoring
  • performance analysis
  • long-term log retention
  • incident investigation

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request