Documentation ¶
Overview ¶
Package log provides a simple levelled logger outputing to stdout and a file.
Index ¶
- type Log
- func (log *Log) Flush()
- func (log *Log) Printf(format string, v ...interface{})
- func (log *Log) Println(v ...interface{})
- func (log *Log) Verbosef(format string, v ...interface{})
- func (log *Log) Verboseln(v ...interface{})
- func (log *Log) Warnf(format string, v ...interface{})
- func (log *Log) Warnln(v ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log provides a simple levelled logger outputing to stdout and a file.
func (*Log) Flush ¶
func (log *Log) Flush()
Flush all buffers associated with the standard logger, if any.
func (*Log) Printf ¶
Printf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.
func (*Log) Println ¶
func (log *Log) Println(v ...interface{})
Info calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Info.
func (*Log) Verbosef ¶
Verbosef calls output to print to the standard logger, only if program is launched with the verbose flag.
func (*Log) Verboseln ¶
func (log *Log) Verboseln(v ...interface{})
Verbose calls output to print to the standard logger, only if program is launched with the verbose flag.
Click to show internal directories.
Click to hide internal directories.