Documentation ¶
Index ¶
- Constants
- func Close()
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Fatal(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func Warning(format string, v ...interface{})
- type Logger
- func (logger *Logger) Close()
- func (logger *Logger) Debug(format string, v ...interface{})
- func (logger *Logger) Error(format string, v ...interface{})
- func (logger *Logger) Fatal(format string, v ...interface{})
- func (logger *Logger) Info(format string, v ...interface{})
- func (logger *Logger) SetLevel(l int)
- func (logger *Logger) StartLogger()
- func (logger *Logger) Warning(format string, v ...interface{})
Constants ¶
View Source
const ( DEBUG = iota INFO WARNING ERROR FATAL Ldate = log.Ldate // the date: 2013/08/23 Ltime = log.Ltime // the time: 01:23:23 Lmicroseconds = log.Lmicroseconds // microsecond resolution: 01:23:23.123123. assumes Ltime. Llongfile = log.Llongfile // full file name and line number: /a/b/c/d.go:23 Lshortfile = log.Lshortfile // final file name element and line number: d.go:23. overrides Llongfile LstdFlags = log.LstdFlags // initial values for the standard logger )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
func (*Logger) StartLogger ¶
func (logger *Logger) StartLogger()
Click to show internal directories.
Click to hide internal directories.