D.2 Logging Options
Logging is controlled by a logback XML file for configuring the loggers. The logback.xml file can be found in the resources folder within the source code repository. The more interesting classes that have default loggers written to the logs directory include:
- KSLuseful for general purpose logging and written to- ksl.logwith default level DEBUG.
- DatabaseIfccaptures database interaction, written to- kslDbLog.logwith default level INFO.
- ExcelUtilcaptures Excel file interactions, written to- kslExcelLog.logwith default level INFO.
- KSLFileUtilcaptures file interactions, written to- ksl_io.logwith default level INFO.
- Modelcaptures key model actions as the model is processed, written to- kslSim.logwith default level of INFO.
- ModelElementcaptures detailed actions related to model element processing, written to- kslModelElement.logwith default level INFO.
- ProcessModelcaptures detailed actions related to entity processing, written to- kslEntity.logwith default level INFO. Very detailed entity tracing can be achieved by setting the log level to TRACE.
- RNStreamProvidercaptures random number stream assignments, written to- kslStreams.logwith default level INFO.
- Controlscaptures simulation control assignment, written to- controlsFile.logwith default level INFO.
For diagnosing issues related to these classes, you can change the debug level within the logback.xml file. Be careful with setting the ProcessModel logger to trace because the generated files will be large and the execution time of the model will be longer because of the extra IO.