mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-05 16:47:31 -04:00
Merge pull request #148 from microsoft/etw-logrus-levels
Replace ETW Logrus hook levels with AllLevels
This commit is contained in:
@@ -33,15 +33,7 @@ func NewHookFromProvider(provider *etw.Provider) (*Hook, error) {
|
|||||||
// Levels returns the set of levels that this hook wants to receive log entries
|
// Levels returns the set of levels that this hook wants to receive log entries
|
||||||
// for.
|
// for.
|
||||||
func (h *Hook) Levels() []logrus.Level {
|
func (h *Hook) Levels() []logrus.Level {
|
||||||
return []logrus.Level{
|
return logrus.AllLevels
|
||||||
logrus.TraceLevel,
|
|
||||||
logrus.DebugLevel,
|
|
||||||
logrus.InfoLevel,
|
|
||||||
logrus.WarnLevel,
|
|
||||||
logrus.ErrorLevel,
|
|
||||||
logrus.FatalLevel,
|
|
||||||
logrus.PanicLevel,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var logrusToETWLevelMap = map[logrus.Level]etw.Level{
|
var logrusToETWLevelMap = map[logrus.Level]etw.Level{
|
||||||
|
|||||||
Reference in New Issue
Block a user