Documentation ¶
Index ¶
- Constants
- func Debug(s string, v ...interface{})
- func Error(s string, v ...interface{})
- func Info(s string, v ...interface{})
- func Notice(s string, v ...interface{})
- func Panic(s string, v ...interface{})
- func SetOutput(w io.Writer)
- func Warning(s string, v ...interface{})
- type FileHandler
- type Logger
- func (l *Logger) Debug(s string, v ...interface{})
- func (l *Logger) Error(s string, v ...interface{})
- func (l *Logger) GetOutput() io.Writer
- func (l *Logger) Info(s string, v ...interface{})
- func (l *Logger) Notice(s string, v ...interface{})
- func (l *Logger) Output(level int, s string) error
- func (l *Logger) Panic(s string, v ...interface{})
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) Warning(s string, v ...interface{})
Constants ¶
View Source
const ( LEVEL_DEBUG = iota LEVEL_INFO LEVEL_NOTICE LEVEL_WARNING LEVEL_ERROR LEVEL_PANIC )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileHandler ¶
type FileHandler struct {
// contains filtered or unexported fields
}
func NewFileHandler ¶
func NewFileHandler(path string) *FileHandler
func (*FileHandler) Close ¶
func (f *FileHandler) Close() error
Click to show internal directories.
Click to hide internal directories.