zap

package
v0.2.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger -.

func New

func New(param Params, out io.Writer) *Logger

New -.

func (*Logger) Debug

func (l *Logger) Debug(message interface{}, args ...interface{})

Debug -.

func (*Logger) Error

func (l *Logger) Error(message interface{}, args ...interface{})

Error -.

func (*Logger) Fatal

func (l *Logger) Fatal(message interface{}, args ...interface{})

Fatal -.

func (*Logger) Info

func (l *Logger) Info(message interface{}, args ...interface{})

Info -.

func (*Logger) Panic

func (l *Logger) Panic(message interface{}, args ...interface{})

Panic -.

func (*Logger) Sync

func (l *Logger) Sync() error

func (*Logger) Warn

func (l *Logger) Warn(message interface{}, args ...interface{})

Warn -.

func (*Logger) With

func (l *Logger) With(key log.Field, value interface{}) log.Interface

type Params

type Params struct {
	AppName                  string
	LogDir                   string
	Level                    log.LogLevel
	UseStdAndFIle            bool
	AddLowPriorityLevelToCmd bool
}

Jump to

Keyboard shortcuts

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