Logging Fatal errors



examples/logging-fatal/logging_fatal.go
package main

import (
    "log"
)

func main() {
    log.Print("First")
    log.Fatal("Oups")
    log.Print("Last")
}

examples/logging-fatal/logging_fatal.out
2020/04/10 08:49:41 First
2020/04/10 08:49:41 Oups
exit status 1