added message types
parent
7f7d29ca1e
commit
bbaf2ae9eb
|
@ -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{}) {
|
||||
|
|
Loading…
Reference in New Issue