console.log(text) Last updated: 30. May 2026

API only function

Outputs specified text to your user's log, same as in JavaScript.
You can find your log on your account page in Docly.

Parameters

Name Type Description
text string

Text to write to log. Same behaviour as in JavaScript.

Returns

Nothing, but writes text to log. Only works in API functions.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
console.log("Log information");
console.warn("Log a warning");
console.error("Log an error");

// These are written as "Console" output in your personal log.
// * Only available in API functions.