mirror of
https://github.com/Viren070/AIOStremio.git
synced 2025-12-01 23:24:19 +01:00
17 lines
350 B
Python
17 lines
350 B
Python
import logging
|
|
|
|
|
|
def setup_logger():
|
|
logging.basicConfig(
|
|
level=logging.INFO,
|
|
format="%(asctime)s - %(levelname)s - %(message)s",
|
|
handlers=[
|
|
logging.FileHandler("debridproxy.log", mode="a"),
|
|
logging.StreamHandler(),
|
|
],
|
|
)
|
|
return logging.getLogger(__name__)
|
|
|
|
|
|
logger = setup_logger()
|