-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add new FatalFunc method to logger to override behavior for Fatal-level logging #16
Conversation
341e685
to
8e1f087
Compare
This action is not allowed by our organization policy.
597867d
to
3324071
Compare
@autarch I removed myself from the reviewer since I am out till next Thursday. If it still needs review then, you can feel free to assign me as reviewer. Thanks! |
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!
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.
Looks good! Just have a question about the test case.
@@ -1039,3 +1039,22 @@ func TestUnmarshalTextLevel(t *testing.T) { | |||
}) | |||
} | |||
} | |||
|
|||
func TestFatalFunc(t *testing.T) { |
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.
Could you also create a test case to make sure the fatal function can be passed down to the child logger created by a With()
function?
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.
Added.
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!
No description provided.