Enhanced logging for HPR graphs

deals with computation of distance matrices
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2848
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Enhanced logging for HPR graphs

Post by Bernd Welter »

Here's some logger that you can use to trace additional information in case of high performance routing:

Code: Select all

<Logger name="com.ptvgroup.xserver.xdima.router.ContractionHierarchiesTools.ChData" level="trace" additivity="false">
  <AppenderRef ref="Console"/>
  <AppenderRef ref="File"/>
</Logger>
It will protocol lines such as this one. Helps to determine the time that was required to load the HPR into memory
2025-05-26 09:55:48,073;TRACE;com.ptvgroup.xserver.xdima.router.ContractionHierarchiesTools.ChData;Loaded high-performance routing network from "C:\\ptv-xserver\\DATA\\hpr\\globaltenant\\globalscope\\c5ea208c-a5e8-4ecf-a119-cce0bc694ee2\\network.hpr"
In the whole process of a dima calculation it may occur several times as you can see below:

2025-05-26 09:55:47,929;TRACE;com.ptvgroup.xserver.xdima.dimaServices.DimaServices;calling createDistanceMatrix()
2025-05-26 09:55:47,953;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.Dima;*** Distance table calculation for Dima globaltenant/globalscope/cb97350f-b6cd-44a6-b2fc-0dd482182ac6 ***
2025-05-26 09:55:47,953;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.Dima;Dima directory : C:\ptv-xserver\DATA\dima\globaltenant/globalscope/cb97350f-b6cd-44a6-b2fc-0dd482182ac6
2025-05-26 09:55:47,953;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.Dima;Net path : C:\ptv-xserver\maps\PTV_World_City_Map_Premium_2025_2H
2025-05-26 09:55:47,953;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.Dima;start location: 4.32148e+06, 5.53813e+06
2025-05-26 09:55:47,953;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.Dima;start location: 4.33462e+06, 5.51604e+06
2025-05-26 09:55:47,954;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.Dima;dest location: 4.32148e+06, 5.53813e+06
2025-05-26 09:55:47,954;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.Dima;dest location: 4.33462e+06, 5.51604e+06
2025-05-26 09:55:47,954;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.LocationInfos;Unknown start location (4.32148e+06, 5.53813e+06)
2025-05-26 09:55:47,990;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.DistanceTableCalc;link 2 locations...
2025-05-26 09:55:47,993;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.DistanceTableCalc;finished linking locations
2025-05-26 09:55:47,993;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.DistanceTableCalc;calculate 2x2 matrix...
2025-05-26 09:55:48,073;TRACE;com.ptvgroup.xserver.xdima.router.ContractionHierarchiesTools.ChData;Loaded high-performance routing network from "C:\\ptv-xserver\\DATA\\hpr\\globaltenant\\globalscope\\c5ea208c-a5e8-4ecf-a119-cce0bc694ee2\\network.hpr"
2025-05-26 09:55:48,265;DEBUG;com.ptvgroup.xserver.xdima.dimaServices.DimaServices;50
2025-05-26 09:55:48,265;DEBUG;com.ptvgroup.xserver.xdima.dimaServices.DimaServices;true
2025-05-26 09:55:48,288;DEBUG;com.ptvgroup.xserver.xdima.dimaServices.DimaServices;100
2025-05-26 09:55:48,288;DEBUG;com.ptvgroup.xserver.xdima.dimaServices.DimaServices;true
2025-05-26 09:55:48,291;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.DistanceTableCalc;finished calculating matrix (error code 0)
2025-05-26 09:55:48,292;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.DistanceTableCalc;calculate 0x2 matrix...
2025-05-26 09:55:48,295;TRACE;com.ptvgroup.xserver.xdima.router.ContractionHierarchiesTools.ChData;Loaded high-performance routing network from "C:\\ptv-xserver\\DATA\\hpr\\globaltenant\\globalscope\\c5ea208c-a5e8-4ecf-a119-cce0bc694ee2\\network.hpr"
2025-05-26 09:55:48,295;DEBUG;com.ptvgroup.xserver.xdima.dimaCtrl.DimaCtrlS.DistanceTableCalc;finished calculating matrix (error code -3208)
2025-05-26 09:55:48,295;DEBUG;com.ptvgroup.xserver.xdima.dimaServices.DimaServices;100
2025-05-26 09:55:48,295;DEBUG;com.ptvgroup.xserver.xdima.dimaServices.DimaServices;true
2025-05-26 09:55:48,315;TRACE;com.ptvgroup.xserver.xdima.dimaServices.DimaServices;calling getMetaInformation()
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply