<gh_stars>1-10
from os import environ
import logging

from logzero import setup_logger  # type: ignore[import]

# https://docs.python.org/3/library/logging.html#logging-levels
loglevel: int = logging.DEBUG  # (10)
if "LOLEXPORT" in environ:
    loglevel = int(environ["LOLEXPORT"])

# logzero handles this fine, can be imported/configured
# multiple times
logger = setup_logger(name="lolexport", level=loglevel)

from os import environ
import logging

from logzero import setup_logger  # type: ignore[import]

# https://docs.python.org/3/library/logging.html#logging-levels
loglevel: int = logging.DEBUG  # (10)
if "LOLEXPORT" in environ:
    loglevel = int(environ["LOLEXPORT"])

# logzero handles this fine, can be imported/configured
# multiple times
logger = setup_logger(name="lolexport", level=loglevel)
# type: ignore[import] # https://docs.python.org/3/library/logging.html#logging-levels # (10) # logzero handles this fine, can be imported/configured # multiple times