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(): ...@@ -73,8 +73,22 @@ class LogWriter():
file_handler = logging.FileHandler("{}/{}.log".format(os.path.join(logs_directory, experiment_name), "console_logs")) file_handler = logging.FileHandler("{}/{}.log".format(os.path.join(logs_directory, experiment_name), "console_logs"))
self.logger.addHandler(file_handler) self.logger.addHandler(file_handler)
def log(self): def log(self, message):
pass """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): def loss_per_iteration(self):
pass pass
...@@ -107,4 +121,4 @@ class LogWriter(): ...@@ -107,4 +121,4 @@ class LogWriter():
pass pass
def labels_generator(self): def labels_generator(self):
pass return pass
\ No newline at end of file \ 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