log

package
v0.0.0-...-6b053b6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CloseSvr func()
)

Functions

func Close

func Close()

func Debug

func Debug(format string, a ...interface{})

func Error

func Error(format string, a ...interface{})

func Export

func Export(logger *Logger)

It's dangerous to call the method on logging

func Fatal

func Fatal(format string, a ...interface{})

func GetBaseLogger

func GetBaseLogger() *log.Logger

func Recover

func Recover(r interface{})

func Release

func Release(format string, a ...interface{})

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(strLevel string, pathname string, flag int) (*Logger, error)

func (*Logger) Close

func (logger *Logger) Close()

It's dangerous to call the method on logging

func (*Logger) Debug

func (logger *Logger) Debug(format string, a ...interface{})

func (*Logger) Error

func (logger *Logger) Error(format string, a ...interface{})

func (*Logger) Fatal

func (logger *Logger) Fatal(format string, a ...interface{})

func (*Logger) Release

func (logger *Logger) Release(format string, a ...interface{})

Jump to

Keyboard shortcuts

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