log

package
v0.0.0-...-eef0f43 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptGinkgo

func AdaptGinkgo()

func Init

func Init(cfg Config)

func Sync

func Sync()

Types

type Config

type Config struct {
	Development bool
	Format      Format
	Level       Level
	StackTrace  bool
	Caller      bool
}

type Format

type Format string
const (
	FormatJSON Format = "json"
	FormatText Format = "text"
)

func (Format) Validate

func (f Format) Validate() error

func (Format) ZapEncoding

func (f Format) ZapEncoding() string

type Level

type Level string
const (
	LevelDebug Level = "debug"
	LevelInfo  Level = "info"
	LevelWarn  Level = "warn"
	LevelError Level = "error"
	LevelPanic Level = "panic"
	LevelFatal Level = "fatal"
)

func (Level) Validate

func (l Level) Validate() error

func (Level) ZapLevel

func (l Level) ZapLevel() zap.AtomicLevel

type Logger

type Logger = *zap.SugaredLogger

func A

func A() Logger

func L

func L() Logger

func WithOperation

func WithOperation(op string) Logger

Jump to

Keyboard shortcuts

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