package main func main() { l := newLogger(true) l.Debugln("This is a debug log.") l.Infoln("This is an info log.") l.Infof("Formatting test: Number is %d.", 2) l.Errorln("This is an error message.") }