tracing-test icon indicating copy to clipboard operation
tracing-test copied to clipboard

Customise log level.

Open ruseinov opened this issue 1 year ago • 2 comments

It would be nice to be able to customize log level for tracing-test. I've got an application pretty heavy on GPU tracing and it simply crashes the test with SIGSEGV. #[tracing-test(DEBUG)] would be a nice to have. Having the default level at tracing is very limiting.

ruseinov avatar Dec 01 '24 20:12 ruseinov

Just wanted to chime in here as +1 this, I know https://github.com/dbrgn/tracing-test/issues/28 covered it already but it would be nice for both test perf and readability to toggle the level down from trace. I have unit tests that generation millions of trace lines and it causes github action UI's to break trying to read the cargo test output (or really on the shell as well).

mothran avatar Dec 06 '24 23:12 mothran

It would also be useful to have this ability for integration tests (where no-env-filter is basically required) to be able to tone down third party crate log levels, e.g. in frontend tests with chromiumoxide basically the entirety of the CDP protocol exchange is logged for me, making the output much less readable.

taladar avatar Feb 24 '25 15:02 taladar