Skip to content

Commit

Permalink
Merge pull request #37 from robmarkcole/adds-logging
Browse files Browse the repository at this point in the history
Adds logging
  • Loading branch information
robmarkcole authored Aug 13, 2019
2 parents a85adbd + a0edec1 commit 23d076b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ __pycache__/
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
# should NOT be excluded as they contain compiler settings and other important
# information for Eclipse / Flash Builder.

*.log
5 changes: 5 additions & 0 deletions coral-app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
import argparse
from PIL import Image
import flask
import logging
import io

app = flask.Flask(__name__)

LOGFORMAT = "%(asctime)s %(levelname)s %(name)s %(threadName)s : %(message)s"
logging.basicConfig(filename='coral.log', level=logging.DEBUG, format=LOGFORMAT)

engine = None
labels = None

Expand Down

0 comments on commit 23d076b

Please sign in to comment.