/
14.3.3 Logger functionalities for plugins

14.3.3 Logger functionalities for plugins

SEAMCAT provides the option to run a simulation in debug mode. With this, you are informed about all relevant calculation steps and the values used, in a similar manner than for the built-in methods. It is therefore advisable to implement this functionality also onto the your plugin in order to make it more transparent to third party users.

The implementation is simply done with this, but requires the apache log4j-1.2x.jar on your development environment:

Its application could look like this (from the above example):

 

Figure 329: Example of logging in your plugin’s code

It would generate the corresponding debug information as depicted in Figure 330. It is integrated automatically to the rest of the SEAMCAT code log file.


Figure 330: Output results of the plugin logger


Related content

2.14 Logging function for debugging
2.14 Logging function for debugging
More like this
A18.4 HOW TO DEBUG YOUR PLUGIN
A18.4 HOW TO DEBUG YOUR PLUGIN
More like this
A20.2 DEBUG INFORMATION FORMAT
A20.2 DEBUG INFORMATION FORMAT
More like this
A20.1 SEAMCAT CONFIGURATION
A20.1 SEAMCAT CONFIGURATION
More like this
2.8 Running from the command line
2.8 Running from the command line
More like this
2.23 Installing plugins in SEAMCAT
2.23 Installing plugins in SEAMCAT
More like this