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

Enhance the logrus logger plugin to support adapt without any settings method invoke #69

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

mrproliu
Copy link
Contributor

No description provided.

@mrproliu mrproliu added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 12, 2023
@mrproliu mrproliu added this to the 0.2.0 milestone Jul 12, 2023
@mrproliu mrproliu requested a review from wu-sheng July 12, 2023 01:53
1. `Logrus`: It automatically selects the current logger when executing functions such as `logrus.New`, `logger.SetOutput`, or `logger.SetFormatter`.
2. `Zap`: It automatically selects the current logger when executing functions such as `zap.New`, `zap.NewNop`, `zap.NewProduction`, `zap.NewDevelopment`, or `zap.NewExample`.

If there are multiple different logging systems in your current application, the last-called logging system would be chosen.
Copy link
Member

Choose a reason for hiding this comment

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

What does last-called mean? Multiple logging systems usually mean hybrid logging usage, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Multiple logging systems usually mean hybrid logging usage, right?

Yes.

What does last-called mean?

That means which logging system would be used on the agent logging. Hybrid logging usage permits logging uploader and tracing enhancement, but the Go Agent logging only needs to send the log to the one logging system.

Copy link
Member

Choose a reason for hiding this comment

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

OK, got it.

@mrproliu mrproliu merged commit 51797c6 into apache:main Jul 12, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants