1
0
Fork 0
Browse Source

create log_services.py.

Houses a collection of print-based functions to help relay information
in the terminal. The biggest motivation for this was to make the
dictionaries easier to read when printing them in the terminal.
stable
Craig Oates 3 years ago
parent
commit
18d0470d43
  1. 16
      src/services/log_services.py

16
src/services/log_services.py

@ -0,0 +1,16 @@
def print_dictionary(dictionary):
for k,v in dictionary.items():
print(f"{k} : {v}")
def print_list(the_list):
for item in the_list:
print(f"item")
def update(message):
print(f"[UPDATE] {message}")
def error(message):
print(f"[ERROR] {message}")
def info(message):
print(f"[INFO] {message}")