log

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, fields ...zap.Field)

Debug is logging debug

func Debugf

func Debugf(fmtStr string, msgs ...interface{})

Debugf is logging debug with printf format

func Error

func Error(msg string)

Error is logging error

func Errorf

func Errorf(fmtStr string, msgs ...interface{})

Errorf is logging error with printf format

func Info

func Info(msg string)

Info is logging info

func Infof

func Infof(fmtStr string, msgs ...interface{})

Infof is logging info with printf format

func Warn

func Warn(msg string)

Warn is logging warn

func Warnf

func Warnf(fmtStr string, msgs ...interface{})

Warnf is logging warn with printf format

Types

type Logger added in v0.1.7

type Logger struct {
	*zap.Logger
}

Logger is service logger

func With added in v0.1.7

func With(fields ...zap.Field) *Logger

With fields to output by default logger

func (*Logger) Debug added in v0.1.7

func (l *Logger) Debug(msg string, fields ...zap.Field)

Debug is logging debug

func (*Logger) Debugf added in v0.1.7

func (l *Logger) Debugf(fmtStr string, msgs ...interface{})

Debugf is logging debug with printf format

func (*Logger) Error added in v0.1.7

func (l *Logger) Error(msg string)

Error is logging error

func (*Logger) Errorf added in v0.1.7

func (l *Logger) Errorf(fmtStr string, msgs ...interface{})

Errorf is logging error with printf format

func (*Logger) Info added in v0.1.7

func (l *Logger) Info(msg string)

Info is logging info

func (*Logger) Infof added in v0.1.7

func (l *Logger) Infof(fmtStr string, msgs ...interface{})

Infof is logging info with printf format

func (*Logger) Warn added in v0.1.7

func (l *Logger) Warn(msg string)

Warn is logging warn

func (*Logger) Warnf added in v0.1.7

func (l *Logger) Warnf(fmtStr string, msgs ...interface{})

Warnf is logging warn with printf format

func (*Logger) With added in v0.1.7

func (l *Logger) With(fields ...zap.Field) *Logger

With fields to output

Jump to

Keyboard shortcuts

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