summaryrefslogtreecommitdiff
path: root/project1/proj1_s4498062/webhttp/weblogging.py
diff options
context:
space:
mode:
authorCamil Staps2016-03-16 22:41:42 +0100
committerCamil Staps2016-03-16 22:41:42 +0100
commit7ed2ab44d5328f6ac2053160d4d8abe847ef8dbc (patch)
tree6302df18cfad128ced8f9996550c7fc67386c63c /project1/proj1_s4498062/webhttp/weblogging.py
parentStart assignment 3 (diff)
Project 1: started with persistent connections
Diffstat (limited to 'project1/proj1_s4498062/webhttp/weblogging.py')
-rw-r--r--project1/proj1_s4498062/webhttp/weblogging.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/project1/proj1_s4498062/webhttp/weblogging.py b/project1/proj1_s4498062/webhttp/weblogging.py
index d1792a3..1bd84a1 100644
--- a/project1/proj1_s4498062/webhttp/weblogging.py
+++ b/project1/proj1_s4498062/webhttp/weblogging.py
@@ -7,3 +7,13 @@ def debug(msg, *args, **kwargs):
def info(msg, *args, **kwargs):
logging.getLogger(name).info(str(msg), *args, **kwargs)
+
+def warning(msg, *args, **kwargs):
+ logging.getLogger(name).warning(str(msg), *args, **kwargs)
+
+def error(msg, *args, **kwargs):
+ logging.getLogger(name).error(str(msg), *args, **kwargs)
+
+def critical(msg, *args, **kwargs):
+ logging.getLogger(name).critical(str(msg), *args, **kwargs)
+