mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 19:37:03 +00:00
more tiny improvements
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
Timestamp,Latency,Code,Method,Path,IP,Req Values,In,Out,Request,Response
|
||||
1599952696740,0s,200,GET,/,::1,,0,5,,Index
|
||||
1599952696774,0s,404,GET,/favicon.ico,::1,,0,9,,Not Found
|
||||
1599952697996,0s,200,GET,/,::1,,0,5,,Index
|
||||
1599952698130,0s,200,GET,/,::1,,0,5,,Index
|
||||
1599952698261,0s,200,GET,/,::1,,0,5,,Index
|
||||
1599952741189,1.01113s,200,GET,/,::1,sleep=1s,0,5,,Index
|
||||
1599996265254,0s,200,GET,/,::1,a=1 b=2,0,5,,Index
|
||||
1599996266138,0s,200,GET,/,::1,sleep=32ms,0,5,,Index
|
||||
1599996266778,1s,200,GET,/,::1,sleep=1s,0,5,,Index
|
||||
1599996267780,1s,200,GET,/,::1,sleep=1s,0,5,,Index
|
||||
|
||||
@@ -11,6 +11,7 @@ func main() {
|
||||
app := iris.New()
|
||||
ac := accesslog.File("access_log.csv")
|
||||
ac.ResponseBody = true
|
||||
ac.LatencyRound = time.Second
|
||||
ac.SetFormatter(&accesslog.CSV{
|
||||
Header: true,
|
||||
// DateScript: "FROM_UNIX",
|
||||
|
||||
Reference in New Issue
Block a user