Documentation ¶
Overview ¶
custom logger accepts guiCh channel to send logs to the user interface
Index ¶
- Constants
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) ResetToStdout()
- func (l *Logger) Ship(t level, args ...interface{})
- func (l *Logger) Shipf(t level, format string, args ...interface{})
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
Constants ¶
View Source
const ( Debug level = "DEBUG" Info level = "INFO" Warn level = "WARN" Error level = "ERROR" Fatal level = "FATAL" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
func New ¶
func New(guiCh chan gui.IncomingData) *Logger
func (*Logger) ResetToStdout ¶
func (l *Logger) ResetToStdout()
Click to show internal directories.
Click to hide internal directories.