-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Log printing tweaks #25488
Log printing tweaks #25488
Conversation
+1 for no metadata for |
Fully agree with @KristofferC on both of those points: no metadata for |
I really like the first style that you said I was asking for as a default. It has a certain feel of "ah, yes, that's just right" (to me at least). With metadata not printed in info messages, it really works. I think the extra line on warnings, errors and debug message is totally ok and actually visually helpful to pick them out. If anyone has real need for their debug or warning message to be very compact, I think using a custom logger format would be ok. |
Yes, first one is great! |
6e59eca
to
f5a3e6e
Compare
The metadata suffix is now printed on its own line by default, and disabled for `Info` level logging. The printing can be made more compact if desired by right justifying the metadata using the `right_justify` setting. Color is made customizable by requiring that it's returned from the meta_formatter() function.
f5a3e6e
to
52c4c45
Compare
Great, I've pushed an update which makes that the default. Let's see what CI says. |
CI likes it too! (As well as CI likes anything these days 😝) |
Love it! |
In response to various feedback about the log formatting (particularly the metadata placement) in #25370 and on slack, here's yet another iteration at finding a generally agreeable format. Notes:
Info
. I thought the inconsistency was a little confusing, so it's back on again for now. It's easy to experiment with this by using your ownmeta_formatter
function.JULIA_INFO_COLOR
etc for now, but this could arguably be removed.