Libraries‎ > ‎Library‎ > ‎Logging‎ > ‎

Log message

BehaviourComposer: ignore everything before this.

Note that a small log area where these messages will be displayed  is created automatically. Use Log area to create a region with a different size or location.

Begin micro-behaviour:

Begin description:

Add a log message to the log area.

End description

Log message

Begin NetLogo code:

substitute-text-area-for log-message "Click on the GO button to run this model. "        

End NetLogo code


Edit the text of the message. You can use NetLogo's word function to construct dynamic messages. E.g.

(word "The population at time " time " is " count all-individuals).

How this works

It calls the NetLogo output-print procedure to add text to the output area (by default at the bottom of the application).

Related micro-behaviours


Log message was implemented by Ken Kahn.

BehaviourComposer: ignore everything after this.