Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add semantic logging #2072

Merged
merged 3 commits into from
Mar 23, 2024
Merged

Add semantic logging #2072

merged 3 commits into from
Mar 23, 2024

Conversation

thomasleese
Copy link
Contributor

@thomasleese thomasleese commented Mar 15, 2024

This adds semantic logging functionality which outputs the logs in production as JSON. The infrastructure team will shortly be implementing structured logging and this allows us to start sending JSON formatted logs before it goes live.

https://technical-guidance.education.gov.uk/infrastructure/monitoring/logit/#send-logs-from-azure

@thomasleese thomasleese marked this pull request as ready for review March 15, 2024 11:47
@thomasleese thomasleese requested a review from a team as a code owner March 15, 2024 11:47
@thomasleese thomasleese enabled auto-merge March 15, 2024 11:47
This adds the Gem which allows us to output logs in a structured format
so they can be consumed by Logit.
This updates the configuration for Semantic Logger to output the JSON
logs to standard output, as per the instructions:

https://logger.rocketjob.io/rails.html#log-to-standard-out
This updates the configuration for development logging to include
coloured output and a backtrace.
@thomasleese thomasleese merged commit 6809742 into main Mar 23, 2024
12 checks passed
@thomasleese thomasleese deleted the semantic-logging branch March 23, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant