-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: json logger #252
feat: json logger #252
Conversation
Codecov Report
|
crates/logger/src/lib.rs
Outdated
pub struct LoggerState { | ||
/// Whether the logger is already initialized | ||
pub init: bool, | ||
|
||
/// Whether the output that is being logged should also be copied | ||
pub should_copy: bool, | ||
pub should_final_copy: bool, |
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.
maybe should_copy_clip
?
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.
As in "should copy to clipboard?"
I added final
here to indicate that the final log, i.e. the value you would like to copy (invite, connection id, etc.) would be copied.
I don't think that should_copy_clipboard
or should_final_copy
are good. I will have a think.
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.
I mena it's not world changing especially from a user perspective. But yeah let's name it sth more eaningful then should_final_copy
- found that a bit confusing. Otherwise really great changes
83e4775
to
6947565
Compare
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.
Overall looks great
crates/logger/src/lib.rs
Outdated
pub struct LoggerState { | ||
/// Whether the logger is already initialized | ||
pub init: bool, | ||
|
||
/// Whether the output that is being logged should also be copied | ||
pub should_copy: bool, | ||
pub should_final_copy: bool, |
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.
I mena it's not world changing especially from a user perspective. But yeah let's name it sth more eaningful then should_final_copy
- found that a bit confusing. Otherwise really great changes
909b845
to
7d06be3
Compare
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.
Left some more Qs/nit picks
7d06be3
to
b5a2c64
Compare
Fixed your comments. can I merged it? |
51d7d8b
to
ee6ed2c
Compare
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.
LGTM, @blu3beri !
There's some failing tests however... |
3aacd61
to
204a1ff
Compare
Signed-off-by: blu3beri <[email protected]>
204a1ff
to
ac2356f
Compare
closes #164
closes #242