invenia / Memento.jl

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

Support maxlog #188

Open AlexRobson opened 1 year ago

AlexRobson commented 1 year ago

I have a pipeline that is producing quite spammed log out put when it repeatedly hits a @warn. However, this line does have a maxlog=1 directive with it. When using memento, it appears as if the maxlog directive is ignored.

Apparently this is part of ConsoleLogger, and so the Logger implemented here doesn't handle. I'm entirely unfamiliar with the Logging frameworks to expand on this, or even whether this is the correct package to file this in.

rofinn commented 1 year ago

Yeah, I'd need to look at how the base logger handles that, but it shouldn't be hard to support more generally.