Code: Select all
import logging
logging.basicConfig(
format="%(asctime)s|%(levelname)s: %(message)s",
datefmt="%H:%M:%S, %d-%b-%Y",
level=logging.DEBUG,
)
logging.info(msg='This is an info')
< /code>
Ich bekomme in das Terminal < /p>
INFO:root:This is an info.
< /code>
Aber gegen denselben Code zeigt dies der Online-Python-Interpreter (das ist auch das, was ich erwarte und Sie können es testen) < /p>
16:13:08, 27-Sep-2025|INFO: This is an info
< /code>
Wie kommt es, dass der Zeitstempel in meinem lokalen PC verschwand? Scheint wie ein Python-Setup/eine Versionsprobleme? Also hier ist mein pyProject.toml
Code: Select all
[project]
name = "rag-poc"
version = "0.1.0"
description = "PoC on RAG on Healthcare Data"
readme = "README.md"
requires-python = "==3.12.10"
dependencies = [
"angle-emb>=0.5.6",
"nltk>=3.9.1",
"pdfplumber>=0.11.7",
"qdrant-client>=1.15.1",
]
< /code>
Ich leite UV -Version 0.8.22 auf meinem Ubuntu 24.04 -Box aus. Ich benutze die Protokollierung