zap

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const EncodeTimeFormat = "2006.01.02 15:04:05"

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func New

func New(timeFormat, level string) (Logger, func() error)

func (Logger) Debug

func (l Logger) Debug(template string, args ...interface{})

func (Logger) Error

func (l Logger) Error(template string, args ...interface{})

func (Logger) Fatal

func (l Logger) Fatal(template string, args ...interface{})

func (Logger) Info

func (l Logger) Info(template string, args ...interface{})

func (Logger) Panic

func (l Logger) Panic(template string, args ...interface{})

func (Logger) SetLevel

func (l Logger) SetLevel(level string)

func (Logger) Warn

func (l Logger) Warn(template string, args ...interface{})

Jump to

Keyboard shortcuts

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