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/01/16 16:35:19 Application start
2022/01/16 16:35:19 nospace
2022/01/16 16:35:19 Hello, world!
2022/01/16 16:35:19 stop application
exit status 1