log

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(level, logPath string, toStderr bool, maxSize, maxBackups uint)

Config initialize logp package

func Debug

func Debug(args ...interface{})

Debug calls the same method of DefaultLogger

func Debugf

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

Debugf calls the same method of DefaultLogger

func Error

func Error(args ...interface{})

Error calls the same method of DefaultLogger

func Errorf

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

Errorf calls the same method of DefaultLogger

func Fatal

func Fatal(args ...interface{})

Fatal calls the same method of DefaultLogger

func Fatalf

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

Fatalf calls the same method of DefaultLogger

func Info

func Info(args ...interface{})

Info calls the same method of DefaultLogger

func Infof

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

Infof calls the same method of DefaultLogger

func Panic

func Panic(args ...interface{})

Panic calls the same method of DefaultLogger

func Panicf

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

Panicf calls the same method of DefaultLogger

func Warn

func Warn(args ...interface{})

Warn calls the same method of DefaultLogger

func Warnf

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

Warnf calls the same method of DefaultLogger

Types

type Logger

type Logger interface {
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Panic(args ...interface{})
	Panicf(format string, args ...interface{})
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
}

Logger is interface for logging

var (

	// DefaultLogger provides global logging motheds
	DefaultLogger Logger
)

Jump to

Keyboard shortcuts

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