banderlog

package
v0.0.0-...-8227220 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package banderlog is wrapper around zap logger that initialize stdout and JSON file logging.

Index

Constants

View Source
const (
	DebugLevel = "DEBUG"
	InfoLevel  = "INFO"
	WarnLevel  = "WARN"
	ErrorLevel = "ERROR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

func New

func New() *Log

func (*Log) Debugf

func (log *Log) Debugf(format string, keyVal ...any)

func (*Log) Debugw

func (log *Log) Debugw(format string, keyVal ...any)

func (*Log) Errorf

func (log *Log) Errorf(format string, keyVal ...any)

func (*Log) Errorw

func (log *Log) Errorw(format string, keyVal ...any)

func (*Log) Fatal

func (log *Log) Fatal(keyVal ...any)

func (*Log) Fatalf

func (log *Log) Fatalf(format string, keyVal ...any)

func (*Log) Flush

func (log *Log) Flush() error

func (*Log) Infof

func (log *Log) Infof(format string, keyVal ...any)

func (*Log) Infow

func (log *Log) Infow(format string, keyVal ...any)

func (*Log) Level

func (log *Log) Level() string

func (*Log) Print

func (log *Log) Print(keyVal ...any)

func (*Log) Printf

func (log *Log) Printf(format string, keyVal ...any)

func (*Log) Println

func (log *Log) Println(keyVal ...any)

func (*Log) Warnf

func (log *Log) Warnf(format string, keyVal ...any)

func (*Log) Warnw

func (log *Log) Warnw(format string, keyVal ...any)

func (*Log) With

func (log *Log) With(keyVal ...any)

Jump to

Keyboard shortcuts

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