logger

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	// contains filtered or unexported fields
}

Field is a helper object that implements the loggerApi.Attribute interface allowing services to add more information into their log messages.

func Any

func Any(key string, value interface{}) Field

Any wraps a value into a formatted log string field.

func Error

func Error(err error) Field

Error wraps an error into a formatted log string field.

func Int32

func Int32(key string, value int32) Field

Int32 wraps an int32 value into a formatted log string field.

func String

func String(key, value string) Field

String wraps a string into a formatted log string field.

func (Field) Key

func (f Field) Key() string

func (Field) Value

func (f Field) Value() interface{}

Jump to

Keyboard shortcuts

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