logutil

package
v0.0.0-...-2054841 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func Errorf

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

func Fatal

func Fatal(v ...interface{})

func Fatalf

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

func GetLevel

func GetLevel() string

GetLevel gets current log's level as a level string.

func Info

func Info(v ...interface{})

func Infof

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

func SetLevel

func SetLevel(level string)

SetLevel sets log's level by a level string.

func SetOutput

func SetOutput(filename string)

SetOutput sets the filename for the log.

func Warn

func Warn(v ...interface{})

func Warnf

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

Types

type LoggerLevel

type LoggerLevel int
const (
	DEBUG LoggerLevel = iota
	INFO
	WARN
	ERROR
)

func (LoggerLevel) String

func (l LoggerLevel) String() string

Jump to

Keyboard shortcuts

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