Logging - Software Engineering

Basic use of log printer fucs

drill/logging.go
package drill

import (
	"log"
)

func main() {
	log.Println("Application", "start")
	log.Print("no", "space")
	log.Printf("Hello, %s!", "world")
	log.Fatal("stop application")
}
$ go run logging.go 
2022/04/14 18:49:35 Application start
2022/04/14 18:49:35 nospace
2022/04/14 18:49:35 Hello, world!
2022/04/14 18:49:35 stop application
exit status 1