-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogger.py
37 lines (27 loc) · 941 Bytes
/
logger.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class c_codes:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
def print_header(string):
print(c_codes.HEADER + string + c_codes.ENDC)
def print_okblue(string):
print(c_codes.OKBLUE + string + c_codes.ENDC)
def print_okgreen(string):
print(c_codes.OKGREEN + string + c_codes.ENDC)
def print_warning(string):
print(c_codes.WARNING + string + c_codes.ENDC)
def print_fail(string):
print(c_codes.FAIL + string + c_codes.ENDC)
def string_header(string):
return (c_codes.HEADER + string + c_codes.ENDC)
def string_okblue(string):
return (c_codes.OKBLUE + string + c_codes.ENDC)
def string_okgreen(string):
return (c_codes.OKGREEN + string + c_codes.ENDC)
def string_warning(string):
return (c_codes.WARNING + string + c_codes.ENDC)
def string_fail(string):
return (c_codes.FAIL + string + c_codes.ENDC)