Hm, indeed. What happens is that we eval all code wrapped in a with_logger(JuliaProgressLogger(current_logger()))
, where the progress logger only handles certain logs and pipes the rest of them to the (cached) current_logger()
. So if you change the global logger inside of that with_logger
block it’ll never be called.
I don’t think there’s a good way to handle this on our end – you’ll either need to wrap your code in e.g.
with_logger(ConsoleLogger(stderr, Debug)) do
@debug "debug test" a
@info "info test" a
@warn "warn test" a
@error "error test" a
end
or set the global logger separately.