This repository has been archived on 2026-03-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
scabiosa/SQL/LogTypes.go

27 lines
343 B
Go

package SQL
import "fmt"
type LogType int64
const (
LogInfo LogType = iota
LogWarning
LogError
LogFatal
)
func (e LogType) String() string {
switch e {
case LogInfo:
return "INFO"
case LogWarning:
return "WARNING"
case LogError:
return "ERROR"
case LogFatal:
return "FATAL"
default:
return fmt.Sprintf("%d", e)
}
}