Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for less verbose output #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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