FuelLabs / FuelLabs/forc

Emit compiler errors and warnings via `tracing` logs in order for more control over filtering, output target, etc

Open
#118 0 comments 0 reactions 0 assignees View on GitHub
enhancement forc forc-tracing
Dominant language
Rust
Stars
0
Forks
0
Avg merge
1d 22h
Merged PRs (30d)
3

Description

`forc` uses `tracing` for logging. This is quite useful for gaining control over how output is handled. In particular, it makes it much easier to filter certain output.

Currently, `forc-util`'s `format_err` and `format_warning` functions that are used for formatting and emitting output write directly to stdout. We should change these to emit output via `tracing`'s logging feature.

Compile errors should likely be emitted via `error!`, and warnings via `warn!`.

Blocked by FuelLabs/sway#1661.

Related FuelLabs/sway#2362, FuelLabs/sway#2373.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.