invenia / Memento.jl

A flexible logging library for Julia
https://invenia.github.io/Memento.jl/latest
Other
87 stars 14 forks source link

Add macros similar to `@test_warn` but for info and error level logs? #192

Open TylerLoewen opened 1 year ago

TylerLoewen commented 1 year ago

There exists the macro @test_warn which removes the need to pass "warn" when checking for warning level log messages. It would be nice if there existed a similar macro for checking info and error level logs. I could see @test_error being confusing as it sounds like it's checking for an error. If these new macros are worth adding maybe they could be named @test_warnlog, @test_infolog and @test_errorlog.