Documentation ¶
Index ¶
- Constants
- func IsDebug() bool
- func Level(l LoggerLevel)
- type Logger
- func (l *Logger) Debug(format string, msg ...interface{})
- func (l *Logger) Error(format string, msg ...interface{})
- func (l *Logger) ErrorExit(handler *errors.Handler)
- func (l *Logger) ErrorExitN(handler *errors.Handler, code int)
- func (l *Logger) ErrorKey(key string, format string, msg ...interface{})
- func (l *Logger) FLog(w io.Writer, msg interface{})
- func (l *Logger) Info(format string, msg ...interface{})
- func (l *Logger) IsPrintable(lvl LoggerLevel) bool
- func (l *Logger) Line()
- func (l *Logger) Log(msg interface{})
- func (l *Logger) Newline()
- func (l *Logger) SetWriter(writer io.Writer)
- func (l *Logger) Table(size uint) *Table
- func (l *Logger) Warn(format string, msg ...interface{})
- type LoggerLevel
- type Table
Constants ¶
View Source
const ( LINE = "------------------------------------------------------------" EMPTY = "" )
Variables ¶
This section is empty.
Functions ¶
func Level ¶
func Level(l LoggerLevel)
Types ¶
type Logger ¶
type Logger struct { Name string // contains filtered or unexported fields }
func (*Logger) IsPrintable ¶
func (l *Logger) IsPrintable(lvl LoggerLevel) bool
Click to show internal directories.
Click to hide internal directories.