package etwlogrus
import "github.com/Microsoft/go-winio/pkg/etwlogrus"
Index ¶
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.
func (*Hook) Close ¶
Close cleans up the hook and closes the ETW provider.
func (*Hook) Fire ¶
Fire receives each Logrus entry as it is logged, and logs it to ETW.
func (*Hook) Levels ¶
Levels returns the set of levels that this hook wants to receive log entries for.
Source Files ¶
- Version
- v0.4.12
- Published
- Feb 21, 2019
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 8 hours ago –
Tools for package owners.