Commit 2e9f5514 authored by Prajwal Patil's avatar Prajwal Patil
Browse files

added trace id to sugger logger

parent 9f6dc030
Branches
No related merge requests found
Showing with 0 additions and 7 deletions
......@@ -4,42 +4,35 @@ package loggermdl
// LogDebug logs a message at level Debug on the standard logger.
func LogDebug(args ...interface{}) {
// fmt.Println("TraceId:---", TraceID)
sugar.Debug(args, TraceID)
}
// LogInfo logs a message at level Info on the standard logger.
func LogInfo(args ...interface{}) {
// fmt.Println("TraceId:---", TraceID)
sugar.Info(args, TraceID)
}
// LogWarn logs a message at level Warn on the standard logger.
func LogWarn(args ...interface{}) {
// fmt.Println("TraceId:---", TraceID)
sugar.Warn(args, TraceID)
}
// LogError logs a message at level Error on the standard logger.
func LogError(args ...interface{}) {
// fmt.Println("TraceId:---", TraceID)
sugar.Error(args, TraceID)
}
// LogFatal logs a message at level Fatal on the standard logger.
func LogFatal(args ...interface{}) {
// fmt.Println("TraceId:---", TraceID)
sugar.Fatal(args, TraceID)
}
// Log as an Info but highlights it.
func LogSpot(args ...interface{}) {
// fmt.Println("TraceId:---", TraceID)
sugar.Info(args, TraceID)
}
// Panic logs a message at level Panic on the standard logger.
func LogPanic(args ...interface{}) {
// fmt.Println("TraceId:---", TraceID)
sugar.Panic(args, TraceID)
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment