Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
2e9f5514
Commit
2e9f5514
authored
3 years ago
by
Prajwal Patil
Browse files
Options
Downloads
Patches
Plain Diff
added trace id to sugger logger
parent
9f6dc030
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loggermdl/loggerprod.go
+0
-7
loggermdl/loggerprod.go
with
0 additions
and
7 deletions
loggermdl/loggerprod.go
+
0
−
7
View file @
2e9f5514
...
...
@@ -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
)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets