logger

package
v0.0.0-...-36447df Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Fatalf

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

func Info

func Info(args ...interface{})

func Infof

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

func Init

func Init(to, level, projectName string)

func InitTo

func InitTo(toConsole bool, toFile bool, level string, projectName string)

func Printf deprecated

func Printf(msg string, args ...interface{})

Deprecated: Printf

func Println deprecated

func Println(args ...interface{})

Deprecated: Printf

func Sync

func Sync()

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type Logger

type Logger interface {
	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{})

	Panic(args ...interface{})
	Sync() error
	Panicf(format string, args ...interface{})
	Printf(format string, args ...interface{})
}

func GetLogger

func GetLogger() Logger

Jump to

Keyboard shortcuts

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