1.fix module package

2.fix govet error
This commit is contained in:
MetaCubeX
2022-03-18 01:25:59 +08:00
parent 8766764d49
commit 1350330fe0
5 changed files with 12 additions and 6 deletions

View File

@ -97,3 +97,9 @@ func newLog(logLevel LogLevel, format string, v ...any) *Event {
Payload: fmt.Sprintf(format, v...),
}
}
func PrintLog(logLevel LogLevel, format string, v ...interface{}) {
event := newLog(logLevel, format, v...)
logCh <- event
print(event)
}