Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateOutputString ¶
func GenerateOutputString(pj ParsedJSON, emoji bool) (string, error)
GenerateOutputString generates the formatted output string for the given parsed JSON.
Types ¶
type LogFilter ¶
LogFilter represents a filter that is used for filter logs based on specific fields
type ParsedJSON ¶
type ParsedJSON interface { GetLevel() string GetTimestamp() string GetCaller() string GetMsg() string GetMeta() map[string]string }
ParsedJSON represents a parsed zap json object.
func ParseJSONByteArray ¶
func ParseJSONByteArray(jsonByte []byte) (ParsedJSON, bool)
ParseJSONByteArray parses the given byte array and creates a ParsedJSON object.
Source Files
¶
- beauty.go
- parsedJSON.go
Click to show internal directories.
Click to hide internal directories.