mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-11-19 23:56:23 +00:00
13 lines
288 B
Python
13 lines
288 B
Python
import logging
|
|
import os
|
|
|
|
from api.backend.utils import get_log_level
|
|
|
|
logging.basicConfig(
|
|
level=get_log_level(os.getenv("LOG_LEVEL")),
|
|
format="%(levelname)s: %(asctime)s - %(name)s - %(message)s",
|
|
handlers=[logging.StreamHandler()],
|
|
)
|
|
|
|
LOG = logging.getLogger(__name__)
|