mirror of
https://github.com/Ahp06/SUMO_Emissions.git
synced 2024-11-21 19:16:30 +00:00
Changed the logger name
This commit is contained in:
parent
1d1fd982c7
commit
d2e0f33836
@ -83,6 +83,9 @@ class Data:
|
|||||||
else:
|
else:
|
||||||
phase_def = phase_def[0]
|
phase_def = phase_def[0]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return Phase(duration[0], min_duration[0], max_duration[0], phase_def)
|
return Phase(duration[0], min_duration[0], max_duration[0], phase_def)
|
||||||
|
|
||||||
def add_data_to_areas(self):
|
def add_data_to_areas(self):
|
||||||
|
@ -70,7 +70,7 @@ class RunProcess(multiprocessing.Process):
|
|||||||
conf_name = self.config.config_filename.replace('.json', '')
|
conf_name = self.config.config_filename.replace('.json', '')
|
||||||
log_filename = f'{logdir}/{current_date}.log'
|
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)
|
self.logger.setLevel(logging.INFO)
|
||||||
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
|
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user