Documentation
¶
Overview ¶
Package log provides logging interfaces.
Index ¶
- Constants
- func Close() error
- func Debug(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Setup(file string, level int) (err error)
- func Warn(format string, args ...interface{})
- func Warnln(args ...interface{})
- type Logger
Constants ¶
View Source
const ( FATAL = 0 ERROR = 1 WARN = 2 INFO = 3 DEBUG = 4 )
Log Level
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(format string, args ...interface{})
Debug use the Error log level write data
func Error ¶
func Error(format string, args ...interface{})
Error use the Error log level write data
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger represents an active logging object that generates lines of output to an io.Writer. Each logging operation makes a single call to theWriter's Write method. A Logger can be used simultaneously from multiple goroutines it guarantees to serialize access to the Writer.
Click to show internal directories.
Click to hide internal directories.