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