mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-11 10:50:03 +01:00
adding function key and actions for cropping
This commit is contained in:
@@ -7,10 +7,11 @@ class MessageHandler(object):
|
||||
self.current_message = [None, None, None]
|
||||
self.number_of_messages = 0
|
||||
self.logger = self.setup_logging()
|
||||
self.function_on = False
|
||||
|
||||
def setup_logging(self):
|
||||
logger = logging.getLogger('logfile')
|
||||
current_dir = data_centre.data.get_the_current_dir_path()
|
||||
current_dir = data_centre.data.get_the_current_dir_path() #TODO : this needs to be improved
|
||||
hdlr = logging.FileHandler(current_dir + 'logfile.log')
|
||||
formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
|
||||
hdlr.setFormatter(formatter)
|
||||
|
||||
Reference in New Issue
Block a user