Skip to content

Adds support for less verbose output#29

Open
Thuener wants to merge 1 commit intokmsquire:masterfrom
Thuener:moreinfo
Open

Adds support for less verbose output#29
Thuener wants to merge 1 commit intokmsquire:masterfrom
Thuener:moreinfo

Conversation

@Thuener
Copy link

@Thuener Thuener commented Dec 23, 2015

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

@kmsquire
Copy link
Owner

@Thuener, sorry so slow in responding to this.

I like the idea. My only request is that you rename moreinfo to verbose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants