mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 04:11:30 +00:00
This commit is contained in:
parent
6ce02f1d1c
commit
b9017829ba
2
beego.go
2
beego.go
@ -203,7 +203,7 @@ func (app *App) ErrorLog(ctx *Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (app *App) AccessLog(ctx *Context) {
|
func (app *App) AccessLog(ctx *Context) {
|
||||||
BeeLogger.Printf("[ACC] host: '%s', request: '%s %s', proto: '%s', ua: %s'', remote: '%s'\n", ctx.Request.Host, ctx.Request.Method, ctx.Request.URL.Path, ctx.Request.Proto, ctx.Request.UserAgent(), ctx.Request.RemoteAddr)
|
BeeLogger.Printf("[ACC] host: '%s', request: '%s %s', proto: '%s', ua: '%s', remote: '%s'\n", ctx.Request.Host, ctx.Request.Method, ctx.Request.URL.Path, ctx.Request.Proto, ctx.Request.UserAgent(), ctx.Request.RemoteAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterController(path string, c ControllerInterface) *App {
|
func RegisterController(path string, c ControllerInterface) *App {
|
||||||
|
Loading…
Reference in New Issue
Block a user