<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _log_message(self, level, process_name, timeperiod, msg):
 """ method performs logging into log file and Timetable's tree node"""

        self.timetable.add_log_entry(process_name, timeperiod, msg)
        self.logger.log(level, msg)