Commit 2d53f299 authored by Andrei-Claudiu Roibu's avatar Andrei-Claudiu Roibu 🖥
Browse files

wrote a log function for adding messages to logger

parent 054f064b
......@@ -73,8 +73,22 @@ class LogWriter():
file_handler = logging.FileHandler("{}/{}.log".format(os.path.join(logs_directory, experiment_name), "console_logs"))
self.logger.addHandler(file_handler)
def log(self):
pass
def log(self, message):
"""Log function
This function logs a message in the logger.
Args:
message (str): Message to be logged
Returns:
None
Raises:
None
"""
self.logger.info(msg= message)
def loss_per_iteration(self):
pass
......@@ -107,4 +121,4 @@ class LogWriter():
pass
def labels_generator(self):
pass
\ No newline at end of file
return pass
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment