Documentation ¶
Index ¶
- type DefaultLogger
- func (l *DefaultLogger) Debug(message string)
- func (l *DefaultLogger) Error(message string)
- func (l *DefaultLogger) Fatal(message string)
- func (l *DefaultLogger) Info(message string)
- func (l *DefaultLogger) Print(message string)
- func (l *DefaultLogger) Trace(message string)
- func (l *DefaultLogger) Warning(message string)
- type FileLogger
- func (l *FileLogger) Debug(message string)
- func (l *FileLogger) Error(message string)
- func (l *FileLogger) Fatal(message string)
- func (l *FileLogger) Info(message string)
- func (l *FileLogger) Print(message string)
- func (l *FileLogger) Println(message string)
- func (l *FileLogger) Trace(message string)
- func (l *FileLogger) Warning(message string)
- type LogLevel
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultLogger ¶
type DefaultLogger struct{}
DefaultLogger is a utility to log messages to a number of destinations
func (*DefaultLogger) Debug ¶
func (l *DefaultLogger) Debug(message string)
Debug level logging. Works like Sprintf.
func (*DefaultLogger) Error ¶
func (l *DefaultLogger) Error(message string)
Error level logging. Works like Sprintf.
func (*DefaultLogger) Fatal ¶
func (l *DefaultLogger) Fatal(message string)
Fatal level logging. Works like Sprintf.
func (*DefaultLogger) Info ¶
func (l *DefaultLogger) Info(message string)
Info level logging. Works like Sprintf.
func (*DefaultLogger) Print ¶
func (l *DefaultLogger) Print(message string)
Print works like Sprintf.
func (*DefaultLogger) Trace ¶
func (l *DefaultLogger) Trace(message string)
Trace level logging. Works like Sprintf.
func (*DefaultLogger) Warning ¶
func (l *DefaultLogger) Warning(message string)
Warning level logging. Works like Sprintf.
type FileLogger ¶
type FileLogger struct {
// contains filtered or unexported fields
}
FileLogger is a utility to log messages to a number of destinations
func (*FileLogger) Debug ¶
func (l *FileLogger) Debug(message string)
Debug level logging. Works like Sprintf.
func (*FileLogger) Error ¶
func (l *FileLogger) Error(message string)
Error level logging. Works like Sprintf.
func (*FileLogger) Fatal ¶
func (l *FileLogger) Fatal(message string)
Fatal level logging. Works like Sprintf.
func (*FileLogger) Info ¶
func (l *FileLogger) Info(message string)
Info level logging. Works like Sprintf.
func (*FileLogger) Println ¶
func (l *FileLogger) Println(message string)
func (*FileLogger) Trace ¶
func (l *FileLogger) Trace(message string)
Trace level logging. Works like Sprintf.
func (*FileLogger) Warning ¶
func (l *FileLogger) Warning(message string)
Warning level logging. Works like Sprintf.