summaryrefslogtreecommitdiff
path: root/src/pyssg/__init__.py
blob: a4e5857f7694a3890eba5bc276af65351269a144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from logging import Logger, StreamHandler, getLogger, INFO

from .pyssg import main
from .per_level_formatter import PerLevelFormatter


# 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)

# not meant to be used as a package, so just give main
__all__ = ['main']