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
ab32b91b
Commit
ab32b91b
authored
3 years ago
by
Prajwal Patil
Browse files
Options
Downloads
Patches
Plain Diff
added trace id to loggermdl
parent
2e9f5514
Branches
corepkg-tracing-v2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loggermdl/loggerprod.go
+7
-7
loggermdl/loggerprod.go
with
7 additions
and
7 deletions
loggermdl/loggerprod.go
+
7
−
7
View file @
ab32b91b
...
...
@@ -4,35 +4,35 @@ package loggermdl
// LogDebug logs a message at level Debug on the standard logger.
func
LogDebug
(
args
...
interface
{})
{
sugar
.
Debug
(
args
,
TraceID
)
sugar
.
Debug
(
"TraceID:"
+
TraceID
+
","
,
args
)
}
// LogInfo logs a message at level Info on the standard logger.
func
LogInfo
(
args
...
interface
{})
{
sugar
.
Info
(
args
,
TraceID
)
sugar
.
Info
(
"TraceID:"
+
TraceID
+
","
,
args
)
}
// LogWarn logs a message at level Warn on the standard logger.
func
LogWarn
(
args
...
interface
{})
{
sugar
.
Warn
(
args
,
TraceID
)
sugar
.
Warn
(
"TraceID:"
+
TraceID
+
","
,
args
)
}
// LogError logs a message at level Error on the standard logger.
func
LogError
(
args
...
interface
{})
{
sugar
.
Error
(
args
,
TraceID
)
sugar
.
Error
(
"TraceID:"
+
TraceID
+
","
,
args
)
}
// LogFatal logs a message at level Fatal on the standard logger.
func
LogFatal
(
args
...
interface
{})
{
sugar
.
Fatal
(
args
,
TraceID
)
sugar
.
Fatal
(
"TraceID:"
+
TraceID
+
","
,
args
)
}
// Log as an Info but highlights it.
func
LogSpot
(
args
...
interface
{})
{
sugar
.
Info
(
args
,
TraceID
)
sugar
.
Info
(
"TraceID:"
+
TraceID
+
","
,
args
)
}
// Panic logs a message at level Panic on the standard logger.
func
LogPanic
(
args
...
interface
{})
{
sugar
.
Panic
(
args
,
TraceID
)
sugar
.
Panic
(
"TraceID:"
+
TraceID
+
","
,
args
)
}
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