1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 18:37:05 +00:00

more tiny improvements

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-13 14:28:05 +03:00
parent 65b7983d7a
commit 7431fcc9cf
10 changed files with 127 additions and 93 deletions

View File

@@ -31,6 +31,7 @@ func makeAccessLog() *accesslog.AccessLog {
// Initialize a new access log middleware.
// Accepts an `io.Writer`.
ac := accesslog.New(bufio.NewWriter(w))
ac.Delim = ' ' // change the separator from '|' to space.
// ac.TimeFormat = "2006-01-02 15:04:05" // default
// Example of adding more than one field to the logger.