when running web app locally with command
go run MainPackageFile.go
and we can map logger e.g with martini
m := martini.Classic()
m.Get("/m", func() string {
return "Hello world!"
})
m.Map(log.New(f, "[martini]", log.LstdFlags))
however what if there is something wrong outside the code, e.g Go not able to download package etc... is there a way to get those go runtime log? when running locally errors will print out onto console. is there a way when running in server, we can have all those log write into text file?