-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated Meshkit logger docs #11202
Updated Meshkit logger docs #11202
Changes from 5 commits
8f4146c
fe98fb3
c01f68b
b352a6c
6ebe5b3
8157ff7
c827505
b2fabaf
690d487
46b06a5
78fd894
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,7 @@ var ( | |
func main() { | ||
log, err := logger.New("test", logger.Options{ | ||
Format: logger.SyslogLogFormat, | ||
DebugLevel: true, | ||
LogLevel: logLevel, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Aviral0702 Good job utilizing the loglevel here, but do you know what it is? Is it a variable or a string? If it is a variable, does it have a value assigned to it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, It is an integer. First of all it is assigned with the value of LOG_LEVEL and there is a check for DEBUG_LEVEL which returns a bool value if it comes out to be true then then the value of logLevel is assigned with the value of debugLevel. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done with the help of Viper framework of Golang. |
||
}) | ||
if err != nil { | ||
fmt.Println(err) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aviral0702 You can take a look to this example set the
logLevel
from here