new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Cloudflare Workers · Runtime APIs · all subjects

console

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

console.log, debug, error, info, warn supported methods

The console methods console.log(), console.debug(), console.error(), console.info(), and console.warn() are fully supported in Cloudflare Workers. These methods write to the console in local dev (npx wrangler@latest dev), appear in live logs when tailing logs in the dashboard or running wrangler tail, and create entries in the logs field of Tail Worker events and Workers Trace Events for pushes to destinations via Logpush.

console.clear, count, group, table, trace partial support

The console methods console.clear(), console.count(), console.group(), console.table(), and console.trace() have partial support in Cloudflare Workers. In both production and local development these methods can be safely called but do nothing (no op). In the Workers Playground, Quick Editor in the Workers dashboard, and remote preview mode (wrangler dev --remote) these methods behave as expected and print to the console.

console methods that are no-ops

The following console methods are no-ops in Cloudflare Workers: console.assert(), console.countReset(), console.dir(), console.dirxml(), console.groupCollapsed(), console.groupEnd(), console.profile(), console.profileEnd(), console.time(), console.timeEnd(), console.timeLog(), and console.timeStamp(). These methods can be called and do not emit an error, but do nothing.

console.createTask() throws exception in production

The console method console.createTask() will throw an exception in production Cloudflare Workers, but works in local dev, Quick Editor, and remote preview mode.

Give your agent this brain