logprocessing

package
v1.14.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettifyFunctionLogLine

func PrettifyFunctionLogLine(logger logger.Logger, log []byte) (string, string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL