log

package module
v0.0.0-...-e5ac7fa Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: MIT Imports: 3 Imported by: 29

README

log

log

Documentation

Index

Constants

View Source
const (
	LevelFatal = iota
	LevelError
	LevelWarning
	LevelInfo
	LevelDebug
)

Variables

This section is empty.

Functions

func Debug

func Debug(s string)

func Debugf

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

func Error

func Error(s string)

func Errorf

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

func Fatal

func Fatal(s string)

func Fatalf

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

func Info

func Info(s string)

func Infof

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

func New

func New() *logger

New 实例化,供外部直接调用 log.XXXX

func NewLogger

func NewLogger() *logger

NewLogger 实例化,供自定义

func SetLogLevel

func SetLogLevel(level Level)

func Warn

func Warn(s string)

func Warnf

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

Types

type Level

type Level int

Jump to

Keyboard shortcuts

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