applogger

package
v0.0.0-...-6261364 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLogger

type AppLogger interface {
	Info(ctx context.Context, msg string, fields ...Field)
	Error(ctx context.Context, msg string, fields ...Field)
}

func GetZap

func GetZap() AppLogger

type Field

type Field struct {
	Key    string
	String string
	Int    int
	Float  float32
	Byte   []byte
	Bool   bool
	Error  error
	// contains filtered or unexported fields
}

func Bool

func Bool(key string, value bool) Field

func Byte

func Byte(key string, value []byte) Field

func Error

func Error(err error) Field

func Float

func Float(key string, value float32) Field

func Int

func Int(key string, value int) Field

func String

func String(key, value string) Field

Jump to

Keyboard shortcuts

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