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

Add new FatalFunc method to logger to override behavior for Fatal-level logging #16

Merged
merged 5 commits into from
Feb 6, 2024

Conversation

autarch
Copy link
Collaborator

@autarch autarch commented Jan 10, 2024

No description provided.

@autarch autarch force-pushed the daver/fatal-func branch 2 times, most recently from 341e685 to 8e1f087 Compare January 25, 2024 14:32
@autarch autarch requested review from tfogo and huan-Mongo January 25, 2024 14:50
@huan-Mongo huan-Mongo removed their request for review January 26, 2024 21:01
@huan-Mongo
Copy link

@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!

@autarch autarch requested a review from edobranov January 29, 2024 03:52
Copy link
Collaborator

@edobranov edobranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@autarch autarch requested review from huan-Mongo and removed request for tfogo February 5, 2024 03:08
Copy link

@huan-Mongo huan-Mongo left a 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) {

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

@autarch autarch requested a review from huan-Mongo February 6, 2024 05:04
Copy link

@huan-Mongo huan-Mongo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@autarch autarch merged commit bcfe1b1 into main Feb 6, 2024
2 checks passed
@autarch autarch deleted the daver/fatal-func branch February 6, 2024 14:46
@autarch autarch restored the daver/fatal-func branch February 6, 2024 14:46
@autarch autarch deleted the daver/fatal-func branch February 6, 2024 14:46
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.

3 participants