added message types

alpha
alex 2023-02-18 08:59:36 +01:00
parent 7f7d29ca1e
commit bbaf2ae9eb
1 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,10 @@ const (
ServiceTypeAlpha = 0
ServiceTypeBeta = 1
ServiceTypeStable = 2
messageTypeInfo = 0
messageTypeDebug = 1
messageTypeError = 2
)
func InitLogger(debug bool, colorizedOutput bool, rabbitMqLogging bool, rabbitMqConnAddr string, serviceName uint8, serviceType uint8) {
@ -89,7 +93,7 @@ func LogInfof(format string, v ...interface{}) {
func LogDebug(msg string) {
log.Debug().Msg(msg)
pushLogMessage(1, msg)
pushLogMessage(messageTypeDebug, msg)
}
func LogDebugf(format string, v ...interface{}) {