Files
gf/.example/net/ghttp/server/log/log_error.go
2019-12-20 23:23:50 +08:00

16 lines
225 B
Go

package main
import (
"github.com/gogf/gf/net/ghttp"
)
func main() {
s := ghttp.GetServer()
s.BindHandler("/log/error", func(r *ghttp.Request) {
panic("OMG")
})
s.SetErrorLogEnabled(true)
s.SetPort(8199)
s.Run()
}