Documentation ¶
Index ¶
- Constants
- func DebugFunc()
- func Debugf(format string, v ...interface{})
- func Debugln(text string)
- func ErrorWrapf(wrappedError error, format string, v ...interface{}) error
- func Errorf(format string, v ...interface{}) error
- func InfoFunc()
- func Infof(format string, v ...interface{})
- func Infoln(text string)
- func SetLevel(level uint)
- func SetLogFile(fileNamePrefix string)
- func Warnf(format string, v ...interface{})
- func Warnln(v ...interface{})
Constants ¶
View Source
const ( LOG_SILENCE = iota LOG_INFO = iota LOG_DEBUG = iota )
Variables ¶
This section is empty.
Functions ¶
func ErrorWrapf ¶ added in v1.1.0
ErrorWrapf creates an error out of a formatted string using 'format' with arguments from 'v' and wraps it with 'wrappedError', along with the file and line number this function was called from. XXX One caveat here: you can only propagate one error
func Errorf ¶
ErrorWrapf creates an error out of a formatted string using 'format' with arguments from 'v', along with the file and line number this function was called from. XXX One caveat here: you can't use error propagation using %w. If you want that, use ErrorWrapf
func SetLogFile ¶
func SetLogFile(fileNamePrefix string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.