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

accesslog: add IP in builtin fields, change the format a bit. Default func: remove compression middleware, force-set debug log level, replace the old request logger with the accesslog one, use request id middlewareand keep recovery

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-11 09:38:55 +03:00
parent 0f5ec75d54
commit e63d1041d2
10 changed files with 95 additions and 46 deletions

View File

@@ -18,9 +18,9 @@ func main() {
*/
ac := accesslog.File("./access.log")
ac.AddOutput(os.Stdout)
defer ac.Close()
ac.TimeFormat = "2006-01-02 15:04:05"
ac.AddOutput(os.Stdout)
// Set to false to print errors as one line:
// ac.KeepMultiLineError = false