mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-10-26 21:29:56 -04:00
Make etw package internal
This commit is contained in:
1 parent
32544c5852
commit
824a366a22
8 files changed
+2
-2
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/Microsoft/go-winio/pkg/etw"
|
"github.com/Microsoft/go-winio/internal/etw"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"golang.org/x/sys/windows"
|
"golang.org/x/sys/windows"
|
||||||
@@ -45,7 +45,7 @@ func (h *Hook) Levels() []logrus.Level {
|
|||||||
// Fire receives each Logrus entry as it is logged, and logs it to ETW.
|
// Fire receives each Logrus entry as it is logged, and logs it to ETW.
|
||||||
func (h *Hook) Fire(e *logrus.Entry) error {
|
func (h *Hook) Fire(e *logrus.Entry) error {
|
||||||
if !h.provider.IsEnabledForLevel(etw.Level(e.Level)) {
|
if !h.provider.IsEnabledForLevel(etw.Level(e.Level)) {
|
||||||
return
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
descriptor := etw.NewEventDescriptor()
|
descriptor := etw.NewEventDescriptor()
|
||||||
|
|||||||
Reference in new issue
Block a user