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

Allow custom log.Logger #474

Merged
merged 2 commits into from May 11, 2023
Merged

Conversation

jkroepke
Copy link
Contributor

@jkroepke jkroepke commented Apr 22, 2023

This PR allow to use custom log.Logger together with the promlog wrapper mechanics and can be considered as alternative to copy, own and manually patch as needed.

A potential use case is using promlog with an Windows Event Log backend.


Not sure, if you are willing to include Windows EventLog support by default.

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
promlog/log.go Outdated Show resolved Hide resolved
promlog/log.go Show resolved Hide resolved
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Copy link

@obalunenko obalunenko left a comment

Choose a reason for hiding this comment

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

LGTM

@jkroepke
Copy link
Contributor Author

@obalunenko Can I help here to move forward here? How many approvals are need to a merge?

@obalunenko
Copy link

I suppose you have to ask @kakkoyun or @roidelapluie for a review and merge - as they're maintainers of this repo

@jkroepke
Copy link
Contributor Author

@kakkoyun or @roidelapluie: could you please take a look here?

@jkroepke
Copy link
Contributor Author

jkroepke commented May 9, 2023

@SuperQ could you make take a look at this? As see some maintainer activity from your point of view.

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

@SuperQ
Copy link
Member

SuperQ commented May 9, 2023

lolol, github outage duplicated my LGTM.

@jkroepke
Copy link
Contributor Author

jkroepke commented May 9, 2023

:D are you also responsable for merge it?

@SuperQ SuperQ requested a review from roidelapluie May 9, 2023 13:14
@roidelapluie roidelapluie merged commit f505d86 into prometheus:main May 11, 2023
7 checks passed
@roidelapluie
Copy link
Member

Thanks!

@jkroepke jkroepke deleted the custom-logger branch May 12, 2023 05:15
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.

None yet

4 participants