mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
@@ -10,11 +10,10 @@ import (
|
||||
func main() {
|
||||
app := iris.New()
|
||||
ac := accesslog.File("access_log.csv")
|
||||
ac.ResponseBody = true
|
||||
ac.SetFormatter(&accesslog.CSV{
|
||||
AutoFlush: true,
|
||||
Header: true,
|
||||
Header: true,
|
||||
// DateScript: "FROM_UNIX",
|
||||
LatencyRound: time.Second,
|
||||
})
|
||||
|
||||
app.UseRouter(ac.Handler)
|
||||
|
||||
Reference in New Issue
Block a user