Appearance
log
Can a script write to a log here? Not yet: log.info, log.warning and log.error compile and run on every engine, and each does nothing and returns na. A script that calls them runs as it would without them. To see a value, plot it with display = display.data_window, or put it in a label or a table.
log.info
Pine v6No effect here
pine
log.info(message) → void
log.info(formatString, arg0, arg1) → voidAccepted, and writes nothing.
| Parameter | Description |
|---|---|
messageseries string | The text. |
formatStringseries string | A format string, as str.format takes. |
arg0series any | The format string's first argument, and so on for as many as it takes. |
arg1series any | The second. |
log.warning
Pine v6No effect here
pine
log.warning(message) → void
log.warning(formatString, arg0, arg1) → voidAccepted, and writes nothing.
| Parameter | Description |
|---|---|
messageseries string | The text. |
formatStringseries string | A format string, as str.format takes. |
arg0series any | The format string's first argument, and so on for as many as it takes. |
arg1series any | The second. |
log.error
Pine v6No effect here
pine
log.error(message) → void
log.error(formatString, arg0, arg1) → voidAccepted, and writes nothing.
| Parameter | Description |
|---|---|
messageseries string | The text. |
formatStringseries string | A format string, as str.format takes. |
arg0series any | The format string's first argument, and so on for as many as it takes. |
arg1series any | The second. |