logger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger struct is loggers map and module variable

func GetLogger

func GetLogger(name string) *Logger

GetLogger is object for log printout is acquired.

func (*Logger) Debugf

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

Debugf is the output debug level log text

func (*Logger) Errorf

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

Errorf is the output error level log text

func (*Logger) GetLogLevel

func (l *Logger) GetLogLevel() string

GetLogLevel is the return current log level state

func (*Logger) Infof

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

Infof is the output info level log text

func (*Logger) SetFileOutPut

func (l *Logger) SetFileOutPut(out io.Writer)

SetFileOutPut is the output to file

func (*Logger) SetJSONLogFormat added in v0.0.3

func (l *Logger) SetJSONLogFormat()

SetJSONLogFormat is the output log format "JSON"

func (*Logger) SetLogLevelDebug

func (l *Logger) SetLogLevelDebug()

SetLogLevelDebug is the output level of log is changed to debug.

func (*Logger) SetLogLevelInfo

func (l *Logger) SetLogLevelInfo()

SetLogLevelInfo is the output level of log is changed to info.

Jump to

Keyboard shortcuts

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