Logging Examples

Last updated on 29th April 2024

To add logging of your own to the simulation logging, you can add some of your own slf4j logs following the slf4j documentation. An example would be as follows.

Logging information

Using a logger (Java)

public class MyModel implements Model {
  Logger logger = LoggerFactory.getLogger(MyModel.class);

  public void step() {
    logger.info("Step");
  }
}