Skip to content

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Aug 27, 2024

  • Extracts HijackLogrus to package log.HijackLogrus.
  • Adds the capability to set logrus log level when hijacking logrus.

Cherry-pick to release/1.0 branch.

@johnstcn johnstcn requested a review from mafredri August 27, 2024 12:36
@johnstcn johnstcn self-assigned this Aug 27, 2024
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Nice 👍🏻

@@ -0,0 +1,62 @@
package hijack
Copy link
Member

Choose a reason for hiding this comment

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

How about logrushijack? I feel this package name is a bit too generic. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't mind renaming, but logrushijack is kinda hard to read IMO.

Copy link
Member

@mafredri mafredri Aug 27, 2024

Choose a reason for hiding this comment

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

I think that's fine for a one-off package that isn't used much elsewhere, logjack is my alternative suggestion. 😄

(Or just move into log package.)

Copy link
Member Author

Choose a reason for hiding this comment

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

:D I like logjack but probably simplest to move it into log.

@johnstcn johnstcn merged commit 8b9ec59 into main Aug 27, 2024
4 checks passed
@johnstcn johnstcn deleted the cj/logrus-debug branch August 27, 2024 14:18
johnstcn added a commit that referenced this pull request Aug 27, 2024
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.

2 participants