Documentation
¶
Index ¶
- func Close()
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func InitLogFile(filename string, format string) error
- func NewDebug(prefix string) *log.Logger
- func NewError(prefix string) *log.Logger
- func NewInfo(prefix string) *log.Logger
- func NewNotice(prefix string) *log.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Info ¶
func Info(v ...interface{})
Info calls the default info logger to print the message using Println.
func Infof ¶
func Infof(format string, v ...interface{})
Info calls the default info logger to print the message using Printf.
func InitLogFile ¶
InitLogFile initializes the logger factory to create loggers that print to a log file.
func NewDebug ¶
NewDebug returns a new logger for logging debug messages with given prefix to the log file or stdout.
func NewError ¶
NewError returns a new logger for logging errors with given prefix to the log file or stderr.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.