Closed
Description
I thought global_logger(DemuxLogger(NullLogger()))
would be a no-op. However, @debug
stopped working after this.
julia> ENV["JULIA_DEBUG"] = "Main"
"Main"
julia> @debug "hello"
┌ Debug: hello
└ @ Main REPL[2]:1
julia> @info "hello"
[ Info: hello
julia> using Logging
julia> using LoggingExtras
julia> global_logger(DemuxLogger(NullLogger()))
ConsoleLogger(Base.TTY(RawFD(0x0000000f) open, 0 bytes waiting), Info, Logging.default_metafmt, true, 0, Dict{Any,Int64}())
julia> @debug "hello"
julia> @info "hello"
[ Info: hello
(v1.3) pkg> st LoggingExtras
Status `~/.julia/environments/v1.3/Project.toml`
[e6f89c97] LoggingExtras v0.3.0
Metadata
Metadata
Assignees
Labels
No labels