test

오전 2:50

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import logging
from flask import Flask
 
app = Flask(__name__)
 
@app.route('/<path:path>')
def static_pages(path):
    app.logger.error(path)
    return app.send_static_file(path)
 
if __name__ == '__main__':
    handler = logging.FileHandler('app.log', mode='a')
    handler.setLevel(logging.INFO)
    app.logger.addHandler(handler)
    app.run(debug=True)

You Might Also Like

0 개의 댓글

SUBSCRIBE NEWSLETTER

Get an email of every new post! We'll never share your address.

Popular Posts

Flickr Images

Recent Posts Widget

Blog Archive