log

package
v0.0.0-...-804c168 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug

func Debugf

func Debugf(format string, args ...interface{})

Debugf

func Error

func Error(args ...interface{})

Error

func Errorf

func Errorf(format string, args ...interface{})

Errorf

func Fatal

func Fatal(args ...interface{})

Fatal

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf

func Info

func Info(args ...interface{})

Info

func Infof

func Infof(format string, args ...interface{})

Infof

func Init

func Init(cfg config.LogConfig)

InitLog init logger instance

func Sync

func Sync()

Sync

func Warn

func Warn(args ...interface{})

Warn

func Warnf

func Warnf(format string, args ...interface{})

Warnf

Types

type Logger

type Logger interface {
	Sync() error

	Debug(args ...interface{})
	Debugf(format string, args ...interface{})

	Info(args ...interface{})
	Infof(format string, args ...interface{})

	Warn(args ...interface{})
	Warnf(format string, args ...interface{})

	Error(args ...interface{})
	Errorf(format string, args ...interface{})

	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
}

Logger is a logger interface

Jump to

Keyboard shortcuts

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