log.error
Adds a error to the log of the bar debugger (the Debug tab in the inspector), with the bar and line. Kept only while the Debug tab is open; costs nothing otherwise.
log.error(message: string)
Parameters
messagestring: The text to log; na logs "na".
Example
log.error("close " + str.tostring(close))