slog: expose io.Writer by jkroepke · Pull Request #694 · prometheus/common (original) (raw)
While implementing the new slog logger at windows_exporter, I figure out that I'm unable to set the Writer as I could on slog.
Define the Writer is important for windows. stdout and stderr are not captured, if programs running as Windows Service.
On windows_exporter, I implement a io.Writer which is able to write data to the Windows Event Log and I would like to use that writer.