Skip to main content

console

Namespace

Namespace in the Lens Scripting API.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Functions

FunctionDescription
debugPrints out a message to the Logger window at the debug log level.
errorPrints out a message to the Logger window at the error log level.
infoPrints out a message to the Logger window at the info log level.
logPrints out a message to the Logger window.
timeStarts a timer named label or "default" if no label specified.
timeEndEnds timer with name label or "default" if no label specified.
timeLogLogs current time for timer named label or "default" if no label specified.
tracePrints out a stack trace to the Logger window.
warnPrints out a message to the Logger window at the warning log level.