File size: 718 Bytes
e676d24 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import os
from typing import Any, List, Tuple, Type
class Settings:
#==============================================================================
GLOBAL_API_BASE="https://llm-server.llmhub.t-systems.net/queue"
GLOBAL_API_KEY=os.getenv("GLOBAL_AIFS_API_KEY")
app_settings = Settings()
from loguru import logger
import sys
from datetime import time, timezone
import os, time
os.environ['TZ'] = 'Europe/Berlin'
time.tzset()
def only_level(level):
def is_level(record):
return record['level'].name == level
return is_level
#logger.remove(0)
formato = '{time:YYYY-MM-DD HH:mm:ss.SS!UTC} {level:8} {message} [{file} : {line}]'
logger.add(sys.stderr, format=formato, level="DEBUG")
|