added the log-mask option in the configuration file

This commit is contained in:
2024-12-09 01:51:04 +09:00
parent be0d31b06c
commit 2c7c08c22f
5 changed files with 67 additions and 10 deletions

View File

@ -8,12 +8,13 @@ import "sync"
const HODU_RPC_VERSION uint32 = 0x010000
type LogLevel int
type LogMask int
const (
LOG_DEBUG LogLevel = iota + 1
LOG_ERROR
LOG_WARN
LOG_DEBUG LogLevel = 1 << iota
LOG_INFO
LOG_WARN
LOG_ERROR
)
type Logger interface {