I\'m trying to write to a log file with Go.
I have tried several approaches, all of which have failed. This is what I have tried:
func TestLogging(t
Declare up top in your global var so all your processes can access if needed.
var
package main import ( "log" "os" ) var ( outfile, _ = os.Create("path/to/my.log") // update path for your needs l = log.New(outfile, "", 0) ) func main() { l.Println("hello, log!!!") }