fixed null pointer dereference in accessing the log mask configuration value

This commit is contained in:
2024-12-09 01:59:05 +09:00
parent 2c7c08c22f
commit db48395b13
3 changed files with 17 additions and 8 deletions

View File

@ -17,6 +17,9 @@ const (
LOG_ERROR
)
const LOG_ALL LogMask = LogMask(LOG_DEBUG | LOG_INFO | LOG_WARN | LOG_ERROR)
const LOG_NONE LogMask = LogMask(0)
type Logger interface {
Write(id string, level LogLevel, fmtstr string, args ...interface{})
}