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

installer: windows event log messages are hard to read #22

Closed
martinlindhe opened this issue Sep 15, 2016 · 3 comments
Closed

installer: windows event log messages are hard to read #22

martinlindhe opened this issue Sep 15, 2016 · 3 comments

Comments

@martinlindhe
Copy link
Collaborator

@carlpett wrote

since we do not have a "MessageFile", all eventlog messages are prefixed with a few paragraphs about not knowing how to format the message. The message itself turns up at the end, so not a deal breaker, but pretty irritating.

Three options:

  1. Ignore it
  2. Create a message file. This is a bit bothersome, sadly, and requires a few winsdk tools to compile.
  3. Piggyback on some existing message file. This will create an implicit dependency though, so not very nice (eg to the .net framework)

(related to msi installer, introduced in #19)

@carlpett
Copy link
Collaborator

Another thing that should be considered as well here, every log.Whatever results in a separate log event in the Windows Event log. For that reason I merged the "enabled collectors" log output, but we may want to do another pass over this to see if there are other places where there are multiline logs done like this.

@kardianos
Copy link

FYI: it is easy to get around the whole missing "MessageFile" thing. When installing, use: https://godoc.org/golang.org/x/sys/windows/svc/eventlog#InstallAsEventCreate . That's effectively what github.com/kardianos/service does.

@carlpett
Copy link
Collaborator

@kardianos Aha, I had missed that, thanks a lot! Will give it a shot as soon as I get a chance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants