Logging
This commit is contained in:
parent
551a4abd13
commit
f0f034d7e4
1 changed files with 8 additions and 2 deletions
|
|
@ -16,7 +16,11 @@ import logging
|
||||||
# Logging
|
# Logging
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
|
|
||||||
log_dir = Path.home() / "logs"
|
if platform.system() == "Windows":
|
||||||
|
log_dir = Path(__file__).parent / "logs"
|
||||||
|
else:
|
||||||
|
log_dir = Path.home() / "logs"
|
||||||
|
|
||||||
log_dir.mkdir(exist_ok=True)
|
log_dir.mkdir(exist_ok=True)
|
||||||
|
|
||||||
log_file = log_dir / "categorize_transactions.log"
|
log_file = log_dir / "categorize_transactions.log"
|
||||||
|
|
@ -445,4 +449,6 @@ else:
|
||||||
|
|
||||||
logging.warning(
|
logging.warning(
|
||||||
"Keine Synchronisationsmethode gefunden."
|
"Keine Synchronisationsmethode gefunden."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
logging.info("=== Scriptende ===")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue