From 1d509211e12bfc8557d54ec114312b8e809af9bd Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Thu, 14 Nov 2024 13:00:35 +0700 Subject: [PATCH] Always flush --- loggorilla.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/loggorilla.py b/loggorilla.py index 762b1fe..ea76d63 100644 --- a/loggorilla.py +++ b/loggorilla.py @@ -1,13 +1,13 @@ import datetime def prcss(loc, msg): - print(f"[loggorilla][{datetime.datetime.now()}][\033[32mprcss\033[39m][\033[95m{loc}\033[39m] {msg}") + print(f"[loggorilla][{datetime.datetime.now()}][\033[32mprcss\033[39m][\033[95m{loc}\033[39m] {msg}", flush=True) def accss(loc, msg): - print(f"[loggorilla][{datetime.datetime.now()}][\033[36maccss\033[39m][\033[95m{loc}\033[39m] {msg}") + print(f"[loggorilla][{datetime.datetime.now()}][\033[36maccss\033[39m][\033[95m{loc}\033[39m] {msg}", flush=True) def fyinf(loc, msg): - print(f"[loggorilla][{datetime.datetime.now()}][\033[93mfyinf\033[39m][\033[95m{loc}\033[39m] {msg}") + print(f"[loggorilla][{datetime.datetime.now()}][\033[93mfyinf\033[39m][\033[95m{loc}\033[39m] {msg}", flush=True) def error(loc, msg): - print(f"[loggorilla][{datetime.datetime.now()}][\033[31merror\033[39m][\033[95m{loc}\033[39m] {msg}") + print(f"[loggorilla][{datetime.datetime.now()}][\033[31merror\033[39m][\033[95m{loc}\033[39m] {msg}", flush=True)