Debugging and logging in Blocks
Log in to add to favouritesPage 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
get block logs <site> <branch> --followThis command:
- retrieves recent logs
- streams new log output
- shows logs from all data centres
Common debugging steps
- Run the container locally
If the issue occurs locally, it is not Block-specific. - Check
manifest.json
Ensure port and routing settings match your application. - Verify routing configuration
Confirm Site View nodes and renderers are correctly mapped. - 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