Skip to content

Add Windows Eventlog logger#31

Closed
jkroepke wants to merge 1 commit intogo-kit:mainfrom
jkroepke:eventlog
Closed

Add Windows Eventlog logger#31
jkroepke wants to merge 1 commit intogo-kit:mainfrom
jkroepke:eventlog

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.

2 participants