format

package
v0.0.0-...-3be76b2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFormat

type LogFormat struct {
	Level      string      `json:"level,omitempty"`
	Timestamp  *time.Time  `json:"timestamp,omitempty"`
	Cursor     string      `json:"cursor,omitempty"`
	Message    interface{} `json:"message,omitempty"`
	Data       interface{} `json:"structure_data,omitempty"`
	StructName string      `json:"structure_name,omitempty"`
	// contains filtered or unexported fields
}

func NewLogFormat

func NewLogFormat(ctrl options.Controller, level string, timestamp *time.Time, mainMsg interface{}, args ...interface{}) *LogFormat

func (*LogFormat) String

func (l *LogFormat) String() string

Jump to

Keyboard shortcuts

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