I have a question about Logging module in Julia 1.1.
When I use Logging module with default configurations, the warn macro and error macro shows output position information (ex. @ Main REPL[3]:1), but the info macro does not.
Like:
julia> using Logging
julia> @info “info”
[ Info: info
julia> @warn “warn”
┌ Warning: warn
└ @ Main REPL[3]:1
julia> @error “error”
┌ Error: error
└ @ Main REPL[4]:1
However, when I use global_logger() funcion to set logger level, the info macro shows output position info.
julia> using Logging
julia> global_logger(SimpleLogger(stderr, Logging.Info))
ConsoleLogger(Base.TTY(RawFD(0x00000011) open, 0 bytes waiting), Info, Logging.default_metafmt, true, 0, Dict{Any,Int64}())
julia> @info “info”
┌ Info: info
└ @ Main REPL[4]:1
julia> @warn “warn”
┌ Warning: warn
└ @ Main REPL[5]:1
julia> @error “error”
┌ Error: error
└ @ Main REPL[6]:1
Does someone knows how to suppress output position information of info macro when I use global_logger()?