Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger wraps the implementation of the logger to provide a more flexible interface.
func FromContext ¶
func (*Logger) Log ¶
Log allows zap logger to meet the Fulton TwitchLogging interface: code.justin.tv/amzn/TwitchLogging Log does a best effort logging of the given args using zap as an underlying logger The fulton logger expects a main message, then a series of keys and values as followup arguments for structured logging, like
fultonlogger.Log("my main message!", "KEY1", "VALUE1", "KEY2", "VALUE2")
Here, we will usher this into something that zap likes by taking those keypairs and shoving them into zap.String() calls
Implementation heavily adapted from JSON fulton logger: https://git-aws.internal.justin.tv/amzn/TwitchLoggingCommonLoggers/blob/mainline/json_logger.go#L35-L54