summaryrefslogtreecommitdiff
path: root/src/pyssg/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pyssg/__init__.py')
-rw-r--r--src/pyssg/__init__.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/pyssg/__init__.py b/src/pyssg/__init__.py
index a4e5857..5d112f1 100644
--- a/src/pyssg/__init__.py
+++ b/src/pyssg/__init__.py
@@ -1,17 +1,7 @@
-from logging import Logger, StreamHandler, getLogger, INFO
-
from .pyssg import main
-from .per_level_formatter import PerLevelFormatter
-
+from .custom_logger import setup_logger
-# since this is the root package, setup the logger here
-__LOG_LEVEL: int = INFO
-log: Logger = getLogger(__name__)
-log.setLevel(__LOG_LEVEL)
-ch: StreamHandler = StreamHandler()
-ch.setLevel(__LOG_LEVEL)
-ch.setFormatter(PerLevelFormatter())
-log.addHandler(ch)
+setup_logger()
# not meant to be used as a package, so just give main
-__all__ = ['main'] \ No newline at end of file
+__all__ = ['main']