You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the formatting guide for go doc links results in the angle brackets being escaped and thus links not being rendered correctly. Is there a way to format links to external resources without just pasting the link? I.E., like this, not like this: https://github.com/rs/zerolog
Example
// GetComponentLogger builds a [ZeroLog] Logger based on provided 'rootLogger' ZeroLog Logger,// adding 'componentName' and 'levelStr' to log messages.// Will default to 'Info' Log Level if invalid or no 'levelStr' is provided//// [ZeroLog]: https://github.com/rs/zerolog "ZeroLog"funcGetComponentLogger(rootLogger zerolog.Logger, componentNamestring, levelStrstring) zerolog.Logger {
level, err:=zerolog.ParseLevel(levelStr)
iferr!=nil {
level=zerolog.InfoLevel
}
returnrootLogger.With().Str("component", componentName).Logger().Level(level)
}
Result (raw markdown)
GetComponentLogger builds a \[ZeroLog\] Logger based on provided 'rootLogger' ZeroLog Logger, adding 'componentName' and 'levelStr' to log messages. Will default to 'Info' Log Level if invalid or no 'levelStr' is provided
\[ZeroLog\]: https://github.com/rs/zerolog "ZeroLog"
## func [GetHashicorpComponentLogger](<https://github.com/redacted>)```gofuncGetHashicorpComponentLogger(rootLoggerzerolog.Logger, componentNamestring, levelStrstring) *logutils.LevelFilter
\```
Result (as rendered by github)
GetComponentLogger builds a [ZeroLog] Logger based on provided 'rootLogger' ZeroLog Logger, adding 'componentName' and 'levelStr' to log messages. Will default to 'Info' Log Level if invalid or no 'levelStr' is provided
Following the formatting guide for go doc links results in the angle brackets being escaped and thus links not being rendered correctly. Is there a way to format links to external resources without just pasting the link? I.E., like this, not like this: https://github.com/rs/zerolog
Example
Result (raw markdown)
Result (as rendered by github)
GetComponentLogger builds a [ZeroLog] Logger based on provided 'rootLogger' ZeroLog Logger, adding 'componentName' and 'levelStr' to log messages. Will default to 'Info' Log Level if invalid or no 'levelStr' is provided
[ZeroLog]: https://github.com/rs/zerolog "ZeroLog"
func GetHashicorpComponentLogger
The text was updated successfully, but these errors were encountered: