made log actually append to log file and not overwrite... also readme change

This commit is contained in:
deadvey 2025-04-01 19:34:02 +01:00
parent aa3ae147bf
commit 7dcc0e05f7
2 changed files with 5 additions and 3 deletions

View File

@ -5,5 +5,7 @@ I've written a basic program in python called glogger, it is a customisable, sta
* click: `pip install click` * click: `pip install click`
# TO DO # TO DO
* Add RSS and/or ATOM support * Add ATOM support
* Make it more reliable? * Properly comment everything
* Better logging to help debug
* Make it generally more reliable/less buggy

View File

@ -2,5 +2,5 @@ import config
def log(text): def log(text):
if config.verbose == True: if config.verbose == True:
print(text) print(text)
with open(config.logfile, "w") as logfile: with open(config.logfile, "a") as logfile:
logfile.write(f"{text}\n") logfile.write(f"{text}\n")