sim.addLog

Adds a log message that will be output in the console or status bar

Synopsis

sim.addLog(int verbosity, string message) sim.addLog(int verbosity, string message)

Arguments

  • verbosity: the verbosity level. Most appropriate values are sim.verbosity_scripterrors (for errors), sim.verbosity_scriptwarnings (for warning) and sim.verbosity_scriptinfos. Combine with sim.verbosity_undecorated if you wish to output the naked message. sim.verbosity_scripterrors will additionaly raise an error.
  • message: the message. None/nil clears the status bar