console
NamespaceNamespace in the Lens Scripting API.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Functions
| Function | Description |
|---|---|
| debug | Prints out a message to the Logger window at the debug log level. |
| error | Prints out a message to the Logger window at the error log level. |
| info | Prints out a message to the Logger window at the info log level. |
| log | Prints out a message to the Logger window. |
| time | Starts a timer named label or "default" if no label specified. |
| timeEnd | Ends timer with name label or "default" if no label specified. |
| timeLog | Logs current time for timer named label or "default" if no label specified. |
| trace | Prints out a stack trace to the Logger window. |
| warn | Prints out a message to the Logger window at the warning log level. |