Documentation ¶
Index ¶
- type TheLogger
- func (l *TheLogger) Close()
- func (l *TheLogger) Debug(message string)
- func (l *TheLogger) Debugf(template string, args ...interface{})
- func (l *TheLogger) Error(message string)
- func (l *TheLogger) Errorf(template string, args ...interface{})
- func (l *TheLogger) Info(message string)
- func (l *TheLogger) Infof(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TheLogger ¶
type TheLogger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
NewLogger returns a new instance of TheLogger and takes in a fileName for the log file.
func (*TheLogger) Debug ¶
Debug is for debug items you want to log, uses fmt.Println for the message
func (*TheLogger) Debugf ¶
Debugf is for debugging with a template string and args, uses fmt.Printf for the output
func (*TheLogger) Errorf ¶
Errorf is for error output with a template string and args, uses fmt.Printf to log messages
Click to show internal directories.
Click to hide internal directories.