Documentation ¶
Overview ¶
Package sio provides logging functions with optional colorization.
Index ¶
- Variables
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Noticef(format string, args ...interface{})
- func Noticeln(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnln(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
var EnableColors = true
EnableColors enables colorized output when set. True by default.
var Output io.Writer = os.Stderr
Output is the writer to which all prompts, errors and messages go. This is set to standard error by default.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf prints the supplied arguments to the standard writer, de-emphasized.
func Debugln ¶
func Debugln(args ...interface{})
Debugln prints the supplied arguments to the standard writer, de-emphasized
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf prints the supplied arguments to the standard writer with some indication that an error has occurred.
func Errorln ¶
func Errorln(args ...interface{})
Errorln prints the supplied arguments to the standard writer with some indication that an error has occurred.
func Noticef ¶
func Noticef(format string, args ...interface{})
Noticef prints the supplied arguments in a way that they will be noticed. Use sparingly.
func Noticeln ¶
func Noticeln(args ...interface{})
Noticeln prints the supplied arguments in a way that they will be noticed. Use sparingly.
func Printf ¶
func Printf(format string, args ...interface{})
Printf prints the supplied arguments to the standard writer.
func Println ¶
func Println(args ...interface{})
Println prints the supplied arguments to the standard writer
Types ¶
This section is empty.