Closed
Description
Logging.__init__
replaces the global logger:
julia/stdlib/Logging/src/Logging.jl
Lines 93 to 95 in 1327dfe
Logging.__init__
was run when loading the sysimg. However, now this isn't the case anymore. This means that
- The colorless
SimpleLogger
is used by default in the REPL using Logging
replaces the logger, which might be a logger a user has already configured
julia> @info "Where are my colors?" logtype = typeof(Base.global_logger())
┌ Info: Where are my colors?
│ logtype = Base.CoreLogging.SimpleLogger
└ @ Main REPL[1]:1
julia> using Logging
julia> @info "Thanks for the colors, but you stole my logger..." logtype = typeof(Base.global_logger())
┌ Info: Thanks for the colors, but you stole my logger...
└ logtype = ConsoleLogger
Not sure what the best fix is, but probably REPL
should depend on Logging
and setup the logger while the REPL initializes.