then setting ENV["JULIA_DEBUG"]="MyModule" doesn’t have any effect because the min_level is INFO. However, if I set min_level to DEBUG - all of the debug statements get logged. JULIA_DEBUG seems to have no effect…
I suggest LoggingExtras is a much better solution.
I would do something like (not tested).
using LoggingExtras
global_logger(EarlyFilteredLogger(ConsoleLogger(stdout, BelowMinLevel)) do log
# Keep any messages from MyModule or of Info level or greater
log._module == MyModule || log.level >= Info
end)