I created a simple rest api via Flask.
@app.route('/login', methods=['POST'])
...
@app.errorhandler(404)
def not_found(e):
return render_template('404.html')
How I can tracking the request method, url, and IP address if the client access to wrong place (404 not found) in Flask. Thanks