mirror of
https://tildegit.org/solderpunk/molly-brown.git
synced 2025-08-05 16:59:11 +00:00
Trying a different logging format...
This commit is contained in:
parent
a67d1b113a
commit
c13acf9c4b
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ type LogEntry struct {
|
||||||
|
|
||||||
func writeLogEntry(fp *os.File, entry LogEntry) {
|
func writeLogEntry(fp *os.File, entry LogEntry) {
|
||||||
var line string
|
var line string
|
||||||
line = "[" + entry.Time.Format(time.UnixDate)+ "]"
|
line = entry.Time.Format(time.RFC3339)
|
||||||
line += "\t" + strconv.Itoa(entry.Status)
|
line += "\t" + strconv.Itoa(entry.Status)
|
||||||
line += "\t" + entry.RemoteAddr.String()
|
line += "\t" + entry.RemoteAddr.String()
|
||||||
line += "\t" + entry.RequestURL
|
line += "\t" + entry.RequestURL
|
||||||
|
|
Loading…
Add table
Reference in a new issue