-
Notifications
You must be signed in to change notification settings - Fork 1
Add Advanced Configuration Options Inspired by pino.js (Structured Logging, Custom Levels, Transports) #4
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
Conversation
|
@dr-orlovsky please review |
dr-orlovsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for the excellent work! I am quite happy with it; have only two minor comments.
PS Sorry for the late review; was on a conference last week and didn't have a chance to look properly.
| #[repr(u8)] | ||
| #[derive(Clone, PartialEq, Eq, Debug)] | ||
| pub enum LogLevel { | ||
| /// Do not log anything. Corresponds to zero verbosity flags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing doc comments here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was not intended, please it will be added back in the next commit
| .help("Increase verbosity level (e.g., -vvv for Info)"), | ||
| ) | ||
| .arg( | ||
| Arg::new("json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and below: since this is a library, its clients may use names json and other in their own command-line arguments. Also, it is not clear why these names are related to logs.
I propose to add prefix log- to all these elements we introduce here (except verbose).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other prefix was also added too, the reason is to format the log response base on the prefix passed, like child_logger, json etc
|
@dr-orlovsky can the rustup version be increased? some sub-pkg are failing on building in toolchain |
|
Sure, you can bump MSRV |
|
@dr-orlovsky i increased the rust version for the lib, because some transitive dependency are breaking. Please look into the review |
|
@dr-orlovsky review |
|
@dr-orlovsky this is waiting for your review |
|
Hi and sorry for the long delay. I took off from FOSS and GitHub due to a very negative experience I had. Now kinda back |
|
I understand, me too. |
|
Also what's next for this library, would love to hear? I think I don't have your mail, communication would be faster |
|
Are you on Telegram? Also the e-mail is dr at orlovsky ch. |
|
Yes am on telegram. My username is @iamgabrielsoft. My email is also: [email protected] Yes am okay accepting to be a maintainer. |
|
Please give me your telegram username so I can add you |
This PR is tied to issue #3. Take a look for more information