This extension allows you to write your own customized NetLogo logging entries.
Run sbt package
. If compilation succeeds, custom-logging.jar
will be created.
The Custom Logging has just a handful of primitives.
log-message <msg>
- Writes to the logs the customized message
<msg>
. A common use of it might be something likecustom-logging:log-message (word "This is the turtle count: " (count turtles))
.
- Writes to the logs the customized message
log-globals <global-name>*
- Writes to the logs the values of each valid global variable whose name was supplied to the primitive as an argument.
log-all-globals
- Writes to the logs the values of all globals in the model.
log-all-globals-but <global-name>*
- Writes to the logs the values of all globals in the model but the ones whose names are supplied to the primitive as arguments.
The NetLogo Custom Logging extension is in the public domain. To the extent possible under law, Uri Wilensky has waived all copyright and related or neighboring rights.