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