Browse Source

Oops, add forgotten logger

opensearch
nir0s 7 years ago
parent
commit
b0120dd869
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      logzio/logger.py

+ 9
- 0
logzio/logger.py View File

@ -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

Loading…
Cancel
Save