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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user