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 Windows Eventlog logger #31

Closed
wants to merge 1 commit into from
Closed

Conversation

jkroepke
Copy link
Contributor

@jkroepke jkroepke commented Apr 22, 2023

Based on the syslog package.

Useful for golang applications running on Windows.

go does not provide a way to read or fetch Windows Event Logs. The tests are limited to sending only, but can't check if the log entry is present.

Tested on a real Windows machine.

@jkroepke jkroepke marked this pull request as draft April 22, 2023 09:28
@jkroepke jkroepke force-pushed the eventlog branch 5 times, most recently from 9510a57 to 7a756c8 Compare April 22, 2023 20:18
@jkroepke jkroepke marked this pull request as ready for review April 22, 2023 20:22
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
@peterbourgon
Copy link
Member

My intuition is that Windows Event Logs are out-of-scope for the core go-kit/log package.

@jkroepke
Copy link
Contributor Author

I saw the syslog package here and though it might be good idea to have the windows counterpart as well here.

@jkroepke
Copy link
Contributor Author

@peterbourgon I cant reproduce the errors from CI. Could it be possible that the version latest is to new for the go version 1.16-1.18?

jkr@joe-nb go-kit-log % go install honnef.co/go/tools/cmd/staticcheck@latest
jkr@joe-nb go-kit-log % staticcheck

I got no output.


Please let me know, if you want to have this in scope of go-kit/log or not.

@peterbourgon
Copy link
Member

Realistically, I cannot maintain this patch in the core module, as I have no direct access to a Windows machine. I think it would be better if this were available in a separate repository.

@jkroepke
Copy link
Contributor Author

Alright. thanks!

@jkroepke jkroepke closed this Apr 29, 2023
@jkroepke jkroepke deleted the eventlog branch May 15, 2023 07:19
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

2 participants