New API: ProgressLogging.implementedby(logger)#24
New API: ProgressLogging.implementedby(logger)#24tkf wants to merge 2 commits intoJuliaLogging:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #24 +/- ##
==========================================
+ Coverage 71.77% 71.95% +0.17%
==========================================
Files 1 1
Lines 163 164 +1
==========================================
+ Hits 117 118 +1
Misses 46 46
Continue to review full report at Codecov.
|
to be compatible with asprogress
|
This looks reasonable to me if it solves the As I said over at |
|
Thanks for having a look at it!
(Edit: Never mind. This was not what SciML/DiffEqBase.jl#450 was about.) |
How about this? JuliaLang/julia#33960 (comment) |
|
Good suggestion, I think something like that is the right way to go. |
This is useful for progress log record providers to check if users have progress monitors. Ref: SciML/DiffEqBase.jl#450 (comment)
Originally I called it
enabled_for. But I thinkimplementedbymakes more sense. For example, the user may turn off progress logging capability for a particular instance of a custom logger type. In this case, the nameenabled_forimplies that this function should returnfalse. But if this function is used by log record providers, they may take action incompatible to the user's intent (e.g., warning message telling the user that the current logger does not support progress bar).