Skip to content

Instantly share code, notes, and snippets.

@markuman
Created April 18, 2019 11:51
Show Gist options
  • Select an option

  • Save markuman/42b5adc9fc3d0fc878caf85218138895 to your computer and use it in GitHub Desktop.

Select an option

Save markuman/42b5adc9fc3d0fc878caf85218138895 to your computer and use it in GitHub Desktop.
2019-04-18T11:50:35.901839161Z gitea.1.davouv81yxa0@hetzner | [Macaron] 2019-04-18 11:50:35: Started GET /star/gitea/src/commit/d8d24a56195e0724a5c1a82e8c620a2b879f6ebd/contrib?lang=zh-CN for 46.229.168.153
[log]
ENABLE_ACCESS_LOG = true
ACCESS = console
ACCESS_LOG_TEMPLATE = {{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment