Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustOpenLogFile ¶
Opens a log file with the appropriate flag and mode.
Types ¶
type TextLogger ¶
type TextLogger struct {
// contains filtered or unexported fields
}
Logs lines of text with the following format:
"%s (%s) %q\n" with timestamp, source code location and log message between quotes.
func NewTextLogger ¶
func NewTextLogger(writers ...io.Writer) *TextLogger
func (*TextLogger) Log ¶
func (l *TextLogger) Log(s string)
Click to show internal directories.
Click to hide internal directories.