1
0
mirror of https://github.com/Ahp06/SUMO_Emissions.git synced 2024-11-21 11:16:28 +00:00

Changed the logger name

This commit is contained in:
Ahp06 2019-02-07 19:14:06 +01:00
parent 1d1fd982c7
commit d2e0f33836
2 changed files with 4 additions and 1 deletions

View File

@ -83,6 +83,9 @@ class Data:
else:
phase_def = phase_def[0]
return Phase(duration[0], min_duration[0], max_duration[0], phase_def)
def add_data_to_areas(self):

View File

@ -70,7 +70,7 @@ class RunProcess(multiprocessing.Process):
conf_name = self.config.config_filename.replace('.json', '')
log_filename = f'{logdir}/{current_date}.log'
self.logger = logging.getLogger(f'{self.data.dir}_{conf_name}')
self.logger = logging.getLogger(f'sumo_logger')
self.logger.setLevel(logging.INFO)
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")