From b0120dd869ddfaba7f32ad89c142528a30111933 Mon Sep 17 00:00:00 2001 From: nir0s Date: Sat, 17 Feb 2018 20:55:14 +0200 Subject: [PATCH] Oops, add forgotten logger --- logzio/logger.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 logzio/logger.py diff --git a/logzio/logger.py b/logzio/logger.py new file mode 100644 index 0000000..0dcacca --- /dev/null +++ b/logzio/logger.py @@ -0,0 +1,9 @@ +import sys +import logging + + +def get_logger(debug): + logger = logging.getLogger(__name__) + logger.setLevel(logging.DEBUG if debug else logging.INFO) + logger.addHandler(logging.StreamHandler(sys.stdout)) + return logger