func HandleNotFound(lgc *logic.Logic) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		lgc.Logger().WithFields(log.Fields{
			"path": r.URL.Path, "method": r.Method,
			"message": "404 Page Not Found",
		}).Info("request start")
		w.WriteHeader(404)
		w.Header().Set("Content-Type", "application/json")
		w.Write([]byte(fmt.Sprintf(
			`{"message":"Page Not Found %s %s"}`, r.Method, r.URL.Path)))
	}
}
// HandleNotFound is the generator of the NotFound handler.
HandleNotFound is the generator of the NotFound handler.
// HandleNotFound is the generator of the NotFound handler .
func HandleNotFound(lgc *logic.Logic) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		lgc.Logger().WithFields(log.Fields{
			"path": r.URL.Path, "method": r.Method,
			"message": "404 Page Not Found",
		}).Info("request start")
		w.WriteHeader(404)
		w.Header().Set("Content-Type", "application/json")
		w.Write([]byte(fmt.Sprintf(
			`{"message":"Page Not Found %s %s"}`, r.Method, r.URL.Path)))
	}
}
func HandleNotFound ( lgc * logic . Logic ) http . HandlerFunc { return func ( w http . ResponseWriter , r * http . Request ) { lgc . Logger ( ) . WithFields ( log . Fields { " " : r . URL . Path , " " : r . Method , " " : " " , } ) . Info ( " " ) w . WriteHeader ( 404 ) w . Header ( ) . Set ( " " , " " ) w . Write ( [ ] byte ( fmt . Sprintf ( `{"message":"Page Not Found %s %s"}` , r . Method , r . URL . Path ) ) ) } }
HandleNotFound is the generator of the NotFound handler.
HandleNotFound is the generator of the NotFound handler .