Logging.jl
Logging.jl copied to clipboard
Adds support for less verbose output
Give the option to have a less verbose output. This is feature is good when I'm testing the code and don't have any interest in date, time and logger name information. I still prefer to use Logging then Base functions because of the others features, like log level.
I just add moreinfo tag(default is true). Using:
julia> using Logging
julia> @Logging.configure(level=Logging.INFO)
Logger(root,INFO,Base.TTY(open, 0 bytes waiting),true,root)
julia> @info("This should appear with date, time and logger name")
23-Dez 15:44:49:INFO:root:This should appear with date, time and logger name
julia> @Logging.configure(level=Logging.INFO, moreinfo=false)
Logger(root,INFO,Base.TTY(open, 0 bytes waiting),false,root)
julia> @info("This should appear without date, time and logger name")
INFO: This should appear without date, time and logger name
Output: INFO: This should appear without date, time and logger name 23-Dez 15:24:21:INFO:root:This should appear with date, time and logger name
@Thuener, sorry so slow in responding to this.
I like the idea. My only request is that you rename moreinfo
to verbose
.