aboutsummaryrefslogtreecommitdiffstats
path: root/logs.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-03-25 12:36:33 -0700
committerGravatar MarkKoz <[email protected]>2019-03-28 13:48:45 -0700
commit0e09d10281798dd365364a12af4487fc150844c1 (patch)
tree028996ba83a000272f05b00f1d974b0942078749 /logs.py
parentReplace RMQ with a POST endpoint (#7) (diff)
Restructure project layout
* Move all code into a "snekbox" package * Use logging code as __init__.py * Rename Snekbox class to NsJail * Create "site" sub-package * Move templates into this sub-package * Move Flask code into a new snekapp module
Diffstat (limited to 'logs.py')
-rw-r--r--logs.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/logs.py b/logs.py
deleted file mode 100644
index fc6070e..0000000
--- a/logs.py
+++ /dev/null
@@ -1,10 +0,0 @@
-import logging
-import sys
-
-logformat = logging.Formatter(fmt='[%(asctime)s] [%(process)s] [%(levelname)s] %(message)s',
- datefmt='%Y-%m-%d %H:%M:%S %z')
-log = logging.getLogger(__name__)
-log.setLevel(logging.DEBUG)
-console = logging.StreamHandler(sys.stdout)
-console.setFormatter(logformat)
-log.addHandler(console)