Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook is a Logrus hook which logs received events to ETW.
func NewHook ¶
NewHook registers a new ETW provider and returns a hook to log from it. The provider will be closed when the hook is closed.
func NewHookFromProvider ¶ added in v0.5.1
NewHookFromProvider creates a new hook based on an existing ETW provider. The provider will not be closed when the hook is closed.
func (*Hook) Close ¶
Close cleans up the hook and closes the ETW provider. If the provder was registered by etwlogrus, it will be closed as part of `Close`. If the provider was passed in, it will not be closed.
Click to show internal directories.
Click to hide internal directories.