7 lines
284 B
Python
7 lines
284 B
Python
class LoggingTemplate:
|
|
# there's no close() and that might cause some issues
|
|
def __init__(self, arguments):
|
|
self.log_file = open(arguments['file'], 'wt')
|
|
|
|
def log(self, service_name, code, status):
|
|
self.log_file.write(f'{service_name} {code}: {status}\n')
|