Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettifyFunctionLogLine ¶
PrettifyFunctionLogLine prettifies log line, and returns - (formattedLogLine, briefLogLine, error) when line shouldn't be added to brief error message - briefLogLine will be an empty string ("")
Types ¶
type FunctionLogLine ¶
type FunctionLogLine struct {
Time interface{} `json:"time"`
Level *string `json:"level"`
Message *string `json:"message"`
Name *string `json:"name,omitempty"`
More interface{} `json:"more,omitempty"`
// these fields may be filled by user function log lines
Datetime *string `json:"datetime"`
With map[string]string `json:"with,omitempty"`
}
func CreateFunctionLogLine ¶
func CreateFunctionLogLine(log []byte) (*FunctionLogLine, error)
func (FunctionLogLine) GetJSONFields ¶
func (f FunctionLogLine) GetJSONFields() []string
GetJSONFields returns FunctionLogLine json field names
Click to show internal directories.
Click to hide internal directories.