10 lines
208 B
Go
10 lines
208 B
Go
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.")
|
|
}
|