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

This section is empty.

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 struct {
	// contains filtered or unexported fields
}

func NewGinkgoLogger

func NewGinkgoLogger() *Logger

func NewLogger

func NewLogger(cfg Config) *Logger

func (*Logger) Access

func (l *Logger) Access() *zap.Logger

func (*Logger) L

func (l *Logger) L() *zap.Logger

func (*Logger) S

func (l *Logger) S() *zap.SugaredLogger

func (*Logger) Sync

func (l *Logger) Sync()

func (*Logger) WithOperation

func (l *Logger) WithOperation(op string) *zap.SugaredLogger

Jump to

Keyboard shortcuts

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