From 702d7900b646a9d873e6eaa4c61088c618eba9f1 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 14 May 2019 23:08:20 +0200 Subject: ee.logging: New module to handle logging. Need something better for messages too. create-bom: Resolving parts from their value fact too. --- src/ee/logging.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ee/logging.py (limited to 'src/ee/logging.py') diff --git a/src/ee/logging.py b/src/ee/logging.py new file mode 100644 index 0000000..c8fd48a --- /dev/null +++ b/src/ee/logging.py @@ -0,0 +1,20 @@ +from colors import color + +__all__ = ["Log", "log"] + + +class Log(object): + def __init__(self): + pass + + def warn(self, msg): + print(color(msg, "orange")) + + def info(self, msg): + print(color(msg, "white")) + + def debug(self, msg): + print(color(msg, "grey")) + + +log = Log() -- cgit v1.2.3