Skip to content

Commit

Permalink
Remove newline character from default logging template + Clean up com…
Browse files Browse the repository at this point in the history
…ments
  • Loading branch information
tohjustin committed Jun 11, 2018
1 parent 21fc137 commit 591ecfe
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import (
"time"
)

// LoggerEntry is the structure
// passed to the template.
// LoggerEntry is the structure passed to the template.
type LoggerEntry struct {
StartTime string
Status int
Expand All @@ -22,13 +21,10 @@ type LoggerEntry struct {
Request *http.Request
}

// LoggerDefaultFormat is the format
// logged used by the default Logger instance.
var LoggerDefaultFormat = "{{.StartTime}} | {{.Status}} | \t {{.Duration}} | {{.Hostname}} | {{.Method}} {{.Path}} \n"
// LoggerDefaultFormat is the format logged used by the default Logger instance.
var LoggerDefaultFormat = "{{.StartTime}} | {{.Status}} | \t {{.Duration}} | {{.Hostname}} | {{.Method}} {{.Path}}"

// LoggerDefaultDateFormat is the
// format used for date by the
// default Logger instance.
// LoggerDefaultDateFormat is the format used for date by the default Logger instance.
var LoggerDefaultDateFormat = time.RFC3339

// ALogger interface
Expand Down

0 comments on commit 591ecfe

Please sign in to comment.