This page provides the description of the different logs which are created when generating a snapshot with Python.
You may refer to Official Documentation
In this page, the different logs lines corresponding to the Run Universal Analyzer - Python are listed with functional and technical explanation of the logs that it generates.
CAST-MS-[Date]-[Time].log.txt
Section of CAST-MS Management Studio log file dealing with Python analyzer. Get the location at CAST Logs location.
This section provides the information of the type of analyzer being used based on the technology which is being analyzed in the application. It provides the details about the command line for running universal analyzer, connection profile and also provides the path of the Analysis Log for more details about the analysis of a single Analysis Unit.
Specifying the option -RUN_AU ,the following command line will launch the analysis unit by retrieving the ID of the Analysis Unit inside the JobSettings.xml.
"\shell_SHELL_13739-20160720094505.castlog'" present the log file of the command line (see option -LOG), this command line can be run from CMD after delivering the application.
INF: 2018-06-04 10:41:15: starting Task Run Universal Analyzer "My Universal Analysis Unit_32686"
INF: 2018-06-04 10:41:15: C:\Program Files\CAST\8.3/anarun.exe -CONNECT_PROFILE('SFRW7LAP:2280 on CastStorageService.salim_833_local') -RUN_AU(2801,2803,'C:\ProgramData\CAST\CAST\CASTMS\LISA\79351da7323b4179b1c2760b8875cc5b\Scrd555c5c14aea4188b3cfb9abe2f84472\JobSettings.xml') -MANAGED(2801) -SESSION_ID(2803) -LOG('C:\ProgramData\CAST\CAST\Logs\TKB PYTHON\Run_Analysis_on_th_247\My_Universal_Analysis-20180604-104104.castlog',TRUNCATE) -LARGESTORAGE('C:\ProgramData\CAST\CAST\CASTMS','C:\ProgramData\CAST\CAST\CASTMS','79351da7323b4179b1c2760b8875cc5b/Scrd555c5c14aea4188b3cfb9abe2f84472') -LOGIN(,CASTCORP\SFR,) -APP(-NOGUI) -FINAL_UPDATE -NOPROGRESS -EXIT
INF: 2018-06-04 10:41:30: #PMC#About to run JOB_UNIVERSAL_ANALYZER job 'My Universal Analysis Unit_32686'.
INF: 2018-06-04 10:41:30: About to run JOB_UNIVERSAL_ANALYZER job 'My Universal Analysis Unit_32686'.
INF: 2018-06-04 10:41:58: Adding new Project: My Universal Analysis Unit_32686
INF: 2018-06-04 10:41:58: Guid set
INF: 2018-06-04 10:41:58: persistence posted
INF: 2018-06-04 10:41:58: identification set
INF: 2018-06-04 10:41:58: description set
INF: 2018-06-04 10:41:58: fullname set
INF: 2018-06-04 10:41:58: identification posted
INF: 2018-06-04 10:41:58: project posted
INF: 2018-06-04 10:41:58: UnivProject id = #4
INF: 2018-06-04 10:41:58: IsInProjectLink added
INF: 2018-06-04 10:42:09: Initializing logging context in a new thread for parent thread 1. Logging.runInNewThreadContext should be used instead
INF: 2018-06-04 10:42:13: #PMC# Execution date=2018/06/04 08:42
INF: 2018-06-04 10:42:13: Execution date=2018/06/04 08:42
INF: 2018-06-04 10:42:13: #PMC# Execution duration=0 days, 00 hours, 00 mins, 43 secs
INF: 2018-06-04 10:42:13: Execution duration=0 days, 00 hours, 00 mins, 43 secs
INF: 2018-06-04 10:42:13: #PMC# Execution result=success
INF: 2018-06-04 10:42:13: Execution result=success
INF: 2018-06-04 10:42:13: Loading ini file: C:\Users\SFR~1.CAS\AppData\Local\Temp\CAST\CAST\8.3\AMRunResult2803.INI
INF: 2018-06-04 10:42:13: Task message: No Task message
INF: 2018-06-04 10:42:13: Log file: C:\ProgramData\CAST\CAST\Logs\TKB PYTHON\Run_Analysis_on_th_247\My_Universal_Analysis-20180604-104104.castlog
INF: 2018-06-04 10:42:13: ending Task Run Universal Analyzer "My Universal Analysis Unit_32686"
My_Universal_Analysis-[Date]-[Time].castlog
Environment Information
This section provides information on the environment in which analysis is about to run,the location of LISA ,LTSA,LSA folder and the local/knowledge base being used for analysis.
2018-06-04 10:41:18.467231 Information MODULMSG ; Job execution CAIP Version: CAST 8.3.3 ( Build 1591 )
2018-06-04 10:41:18.467231 Information MODULMSG ; Job execution LISA folder: C:\ProgramData\CAST\CAST\CASTMS
2018-06-04 10:41:18.467231 Information MODULMSG ; Job execution LTSA folder: C:\ProgramData\CAST\CAST\CASTMS
2018-06-04 10:41:18.467231 Information MODULMSG ; Job execution LSA relative folder: 79351da7323b4179b1c2760b8875cc5b\Scrd555c5c14aea4188b3cfb9abe2f84472
2018-06-04 10:41:22.025799 Information MODULMSG ; Job execution Using Knowledge Base on schema salim_833_local
Run analysis is about to start
In this stage, installed extensions are registered and meta-model is loaded from knowledge base
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.python 1.0.0-funcrel
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.dmtxmlscanner 1.0.0-funcrel
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.dotnet 1.0.0
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.html5 1.7.1.
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.internal.platform 0.6.0.
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.jaxrs 1.3.1.
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.jaxws 1.0.0-funcrel.
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.jee 1.0.4.
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.jquery 1.6.0.
2018-06-04 10:41:28.240345 Information MODULMSG ; Job execution Registering extension com.castsoftware.nodejs 1.6.0.
2018-06-04 10:41:28.241397 Information MODULMSG ; Job execution Registering extension com.castsoftware.springmvc 1.5.0.
2018-06-04 10:41:28.241414 Information MODULMSG ; Job execution Registering extension com.castsoftware.sqlanalyzer 2.3.1.
2018-06-04 10:41:28.241414 Information MODULMSG ; Job execution Registering extension com.castsoftware.wbslinker 1.5.0.
2018-06-04 10:41:28.241414 Information MODULMSG ; Job execution Registering extension com.castsoftware.webfilesdiscoverer 1.1.0.
2018-06-04 10:41:28.241414 Information MODULMSG ; Job execution Registering extension com.castsoftware.JEE-MavenHttp 2.0.0.
2018-06-04 10:41:28.241414 Information MODULMSG ; Job execution Registering extension com.castsoftware.angularjs 1.6.0.
2018-06-04 10:41:28.241414 Information MODULMSG ; Job execution Registering extension com.castsoftware.businessobject 1.0.2.
2018-06-04 10:41:28.241414 Information MODULMSG ; Job execution Registering extension com.castsoftware.dmtboextractiondiscoverer 1.0.0.
2018-06-04 10:41:28.832316 Information MODULMSG ; Job execution Loading meta model from repository . . .
2018-06-04 10:41:29.817177 Information MODULMSG ; Job execution Meta model loaded.
2018-06-04 10:41:30.038009 Information MODULMSG ; Job execution RunAnalysis started
Configuration information
For each Universal Analysis Unit: Universal language , File extensions, Name, and Description are logged. Then, a list of the Source files, with path and permission.
2018-06-04 10:41:30.043022 Information MODULMSG ; Job execution Analysis Unit description :
2018-06-04 10:41:30.043022 Information MODULMSG ; Job execution Name : My Universal Analysis Unit
2018-06-04 10:41:30.044021 Information MODULMSG ; Job execution Universal language
2018-06-04 10:41:30.044021 Information MODULMSG ; Job execution Extensions used in jobSettings : *.py
2018-06-04 10:41:30.044021 Information MODULMSG ; Job execution Name : Python
2018-06-04 10:41:30.044021 Information MODULMSG ; Job execution Description : Python
2018-06-04 10:41:30.044021 Information MODULMSG ; Job execution Sources
2018-06-04 10:41:30.044021 Information MODULMSG ; Job execution File Path : C:\CASTMS-833\Deploy\TKB PYTHON\PbBookmarkFixer
2018-06-04 10:41:30.044021 Information MODULMSG ; Job execution Permission : Includ
2018-06-04 10:41:30.044021 Information MODULMSG ; Job execution Universal language
2018-06-04 10:41:30.044021 Information MODULMSG ; Job execution Extensions used in jobSettings : *.py
Debug options
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution Number of Instances : 200000
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution Activate AMT Memory Profiling :
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution Activate Inference Engine technical log :
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution Activate Inference Engine traces :
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution Activate Metrics traces :
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution Include debug messages :
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution Skip Metrics compute :
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution Skip analysis result save :
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution Show SQL :
2018-06-04 10:41:30.045021 Information MODULMSG ; Job execution SESSION CONTEXT details:
2801 ; 2803 = "TKB PYTHON"."My Universal Analysis Unit_32686"
2018-06-04 10:41:30.047025 Information MODULMSG ; Job execution About to run JOB_UNIVERSAL_ANALYZER job 'My Universal Analysis Unit_32686'.
File processing
Search for the phrase : About to run JOB_UNIVERSAL_ANALYZER
This section shows that the analysis step has started.
2018-06-04 10:41:30.047025 Information MODULMSG ; Job execution About to run JOB_UNIVERSAL_ANALYZER job 'My Universal Analysis Unit_32686'.
2018-06-04 10:41:30.113966 Information MODULMSG ; Job execution Total physical memory: 8064 MB.
This section shows the number of external link components loaded (the client server components being loaded) and validation results and the files that are being analyzed.
2018-06-04 10:41:30.536757 Information MODULMSG ; Job execution External link component has loaded 0 objects
2018-06-04 10:41:30.578736 Information MODULMSG ; Job execution External link component has loaded 0 objects
2018-06-04 10:41:59.080108 Information MODULMSG ; Job execution External link component has loaded 0 objects
This section shows the files that are being processed during the analysis.
2018-06-04 10:41:59.294787 Information MODULMSG ; Job execution Starting processing of file 'C:\CASTMS-833\Deploy\TKB PYTHON\PbBookmarkFixer\pb_bookmark_fixer.py'
2018-06-04 10:41:59.338760 Information MODULMSG ; Job execution File processed : 'C:\CASTMS-833\Deploy\TKB PYTHON\PbBookmarkFixer\pb_bookmark_fixer.py'
2018-06-04 10:41:59.344835 Information MODULMSG ; Job execution [com.castsoftware.python] Saved standard library objects
For each file, the log shows details of the light parsing
In Python, the flow control is partly defined by the identation. For example, such control structures like loops and conditional structures end when the identation changes. This is why the extension analyzes the identation of the code.
2018-06-04 10:41:59.344835 Information MODULMSG ; Job execution [com.castsoftware.python] Light parsing of file C:\CASTMS-833\Deploy\TKB PYTHON\PbBookmarkFixer\pb_bookmark_fixer.py
2018-06-04 10:41:59.441854 Information MODULMSG ; Job execution [com.castsoftware.python] column = 5
2018-06-04 10:41:59.441854 Information MODULMSG ; Job execution [com.castsoftware.python] token = Token(Token.Keyword,'def',32,5,32,8)
2018-06-04 10:41:59.441854 Information MODULMSG ; Job execution [com.castsoftware.python] deduced_indentation = [4, 4]
2018-06-04 10:41:59.441854 Information MODULMSG ; Job execution [com.castsoftware.python] current_column = 9
2018-06-04 10:41:59.445839 Information MODULMSG ; Job execution [com.castsoftware.python] column = 1
2018-06-04 10:41:59.445839 Information MODULMSG ; Job execution [com.castsoftware.python] token = Token(Token.Keyword,'class',37,1,37,6)
2018-06-04 10:41:59.445839 Information MODULMSG ; Job execution [com.castsoftware.python] deduced_indentation = [4, 4]
2018-06-04 10:41:59.445839 Information MODULMSG ; Job execution [com.castsoftware.python] current_column = 9
2018-06-04 10:41:59.458832 Information MODULMSG ; Job execution [com.castsoftware.python] deduced_indentation = [4]
2018-06-04 10:41:59.459854 Information MODULMSG ; Job execution [com.castsoftware.python] current_column = 5
2018-06-04 10:41:59.461829 Information MODULMSG ; Job execution [com.castsoftware.python] column = 5
[ ... ]
Then for each file the log shows details of the full parsing
2018-06-04 10:42:00.233796 Information MODULMSG ; Job execution [com.castsoftware.python] Full parsing of file C:\CASTMS-833\Deploy\TKB PYTHON\PbBookmarkFixer\pb_bookmark_fixer.py
2018-06-04 10:42:00.276830 Information MODULMSG ; Job execution [com.castsoftware.python] column = 5
2018-06-04 10:42:00.276830 Information MODULMSG ; Job execution [com.castsoftware.python] token = Token(Token.Keyword,'def',32,5,32,8)
2018-06-04 10:42:00.276830 Information MODULMSG ; Job execution [com.castsoftware.python] deduced_indentation = [4, 4]
2018-06-04 10:42:00.276830 Information MODULMSG ; Job execution [com.castsoftware.python] current_column = 9
2018-06-04 10:42:00.282830 Information MODULMSG ; Job execution [com.castsoftware.python] column = 1
[ ... ]
Summary of services and operations created
2018-06-04 10:42:02.692735 Information MODULMSG ; Job execution [com.castsoftware.python] 0 requests services created.
2018-06-04 10:42:02.692735 Information MODULMSG ; Job execution [com.castsoftware.python] 0 httplib or http services created.
2018-06-04 10:42:02.692735 Information MODULMSG ; Job execution [com.castsoftware.python] 0 httplib2 services created.
2018-06-04 10:42:02.692735 Information MODULMSG ; Job execution [com.castsoftware.python] 0 aiohttp services created.
2018-06-04 10:42:02.692735 Information MODULMSG ; Job execution [com.castsoftware.python] 0 urllib services created.
2018-06-04 10:42:02.692735 Information MODULMSG ; Job execution [com.castsoftware.python] 0 urllib2 services created.
2018-06-04 10:42:02.692735 Information MODULMSG ; Job execution [com.castsoftware.python] 0 flask operations created.
2018-06-04 10:42:02.692735 Information MODULMSG ; Job execution [com.castsoftware.python] 0 aiohttp operations created.
2018-06-04 10:42:02.692735 Information MODULMSG ; Job execution [com.castsoftware.python] 0 SQL queries created.
Checksum processing
2018-06-04 10:42:02.798707 Information MODULMSG ; Job execution Starting checksum processing
2018-06-04 10:42:03.056562 Information MODULMSG ; Job execution End checksum processing
UA Resolution
2018-06-04 10:42:03.089571 Information MODULMSG ; Job execution Starting UA resolution
2018-06-04 10:42:03.089571 Information MODULMSG ; Job execution End UA resolution
Saving step
This section indicates that analysis process compares the results in the Knowledge base
2016-07-18 10:05:50.372 MODULMSG ; Job execution Comparing objects on server . . .
2016-07-18 10:05:54.964 MODULMSG ; Job execution Comparison completed.
This section indicate that analysis process flushes the results in the Knowledge base
2016-07-18 10:05:54.964 MODULMSG ; Job execution Merging objects on server . . .
2016-07-18 10:05:57.419 MODULMSG ; Job execution Merge completed.
Execution Summary
This section shows the execution date and time,the time taken for the entire analysis to get completed,the number of fatal errors/errors/warnings/information messages.
2018-06-04 10:42:13.544845 Information MODULMSG ; Job execution New Job status
2018-06-04 10:42:13.545847 Information MODULMSG ; Job execution Execution date=2018/06/04 08:42
2018-06-04 10:42:13.547849 Information MODULMSG ; Job execution Execution duration=0 days, 00 hours, 00 mins, 43 secs
2018-06-04 10:42:13.548844 Information MODULMSG ; Job execution Execution result=success
2018-06-04 10:42:13.548844 Information MODULMSG ; Job execution Analysis completed
2018-06-04 10:42:13.670775 Information MODULMSG ; Job execution 0 fatal error(s); 0 error(s); 0 warning(s); 654 information message(s).
CAST_MainTask_SummaryLog_<Date>-<Time>.txt
Status: Execution succeeded
Start: Mon Jun 04 10:41:02 CEST 2018
OS Version: Windows 8.1 (version 6.3)
Machine name: SFRW7LAP
Software Version: CAST 8.3.3 ( Build 1591 )
Task: Run Analysis on the current analysis unit's group
Total duration: 1m39s
-- Statistics for application TKB PYTHON --
Analysis duration: 1m38s
Nb of modules: 0
Nb of active analysis units: 1
Nb of inactive analysis units: 0
Total nb of analysis units: 1
Nb of saved objects: 26
Summary is saved at C:\ProgramData\CAST\CAST\Logs\TKB PYTHON\Run_Analysis_on_th_247\CAST_MainTask_SummaryLog-20180604-104242.txt