From 8965253222e01a526f2780620b1984c76a1325f4 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Wed, 3 May 2023 22:56:38 +0700 Subject: [PATCH] Add logging library in core directory --- core/loggorilla.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/loggorilla.py diff --git a/core/loggorilla.py b/core/loggorilla.py new file mode 100644 index 0000000..86c4e57 --- /dev/null +++ b/core/loggorilla.py @@ -0,0 +1,13 @@ +import datetime + +def prcss(loc, msg): + print(f"[loggorilla][{datetime.datetime.now()}][\033[32mprcss\033[39m][\033[95m{loc}\033[39m] {msg}") + +def accss(loc, msg): + print(f"[loggorilla][{datetime.datetime.now()}][\033[32mprcss\033[39m][\033[95m{loc}\033[39m] {msg}") + +def fyinf(loc, msg): + print(f"[loggorilla][{datetime.datetime.now()}][\033[93mfyinf\033[39m][\033[95m{loc}\033[39m] {msg}") + +def error(loc, msg): + print(f"[loggorilla][{datetime.datetime.now()}][\033[31merror\033[39m][\033[95m{loc}\033[39m] {msg}")