Logging & monitoring
Architect logs to AWS CloudWatch.
Supported runtimes
- Node
console.log
or any logging library that writes to stdout or stderr - Deno
console.log
or any logging library that writes to stdout or stderr - Ruby
puts
or any logging library that writes to stdout or stderr - Python
print
or any logging library that writes to stdout or stderr
See also
- CloudWatch captures many metrics from Functional Web App primitives, especially API Gateway
- X-Ray offers deeper service call introspection capabilities
- There are many third party tools to further extend your app with structured logs
Example
Given the following app.arc
file:
@app
example-app
@http
get /
To view the staging logs for the get /
handler:
arc logs src/http/get-index
To view the production logs:
arc logs production src/http/get-index