Merge of log_file.go/log_unixpipe.go, file output from pkg main to json