rust-lang / rust-log-analyzer

Analyzing Travis and Azure Pipelines logs to find encountered errors
MIT License
40 stars 27 forks source link

Switch to tracing for logging #50

Closed pietroalbini closed 4 years ago

pietroalbini commented 4 years ago

This PR switches from env_logger/log to tracing as the logging backend of RLA. tracing provides a mostly drop-in replacement, and also allows to group messages together:

2020-07-22--13-07-25

The reason for this change is that without a way to group the messages from the same request together, debugging issues on CloudWatch is really hard. I've been pseudo-replicating this by prepending important log messages with "build {id}", but that doesn't scale and is more invasive than just switching to tracing.