Console
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:87
Methods
Section titled “Methods”assert()
Section titled “assert()”assert(
condition?, …data?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:88
Parameters
Section titled “Parameters”condition?
Section titled “condition?”boolean
…any[]
Returns
Section titled “Returns”void
clear()
Section titled “clear()”clear():
void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:94
The console.clear() static method clears the console if possible.
Returns
Section titled “Returns”void
count()
Section titled “count()”count(
label?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:100
The console.count() static method logs the number of times that this particular call to count() has been called.
Parameters
Section titled “Parameters”label?
Section titled “label?”string
Returns
Section titled “Returns”void
countReset()
Section titled “countReset()”countReset(
label?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:106
The console.countReset() static method resets counter used with console/count_static.
Parameters
Section titled “Parameters”label?
Section titled “label?”string
Returns
Section titled “Returns”void
debug()
Section titled “debug()”debug(…
data):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:112
The console.debug() static method outputs a message to the console at the ‘debug’ log level.
Parameters
Section titled “Parameters”…any[]
Returns
Section titled “Returns”void
dir(
item?,options?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:118
The console.dir() static method displays a list of the properties of the specified JavaScript object.
Parameters
Section titled “Parameters”any
options?
Section titled “options?”any
Returns
Section titled “Returns”void
dirxml()
Section titled “dirxml()”dirxml(…
data):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:124
The console.dirxml() static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
Parameters
Section titled “Parameters”…any[]
Returns
Section titled “Returns”void
error()
Section titled “error()”error(…
data):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:130
The console.error() static method outputs a message to the console at the ‘error’ log level.
Parameters
Section titled “Parameters”…any[]
Returns
Section titled “Returns”void
group()
Section titled “group()”group(…
data):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:136
The console.group() static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.
Parameters
Section titled “Parameters”…any[]
Returns
Section titled “Returns”void
groupCollapsed()
Section titled “groupCollapsed()”groupCollapsed(…
data):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:142
The console.groupCollapsed() static method creates a new inline group in the console.
Parameters
Section titled “Parameters”…any[]
Returns
Section titled “Returns”void
groupEnd()
Section titled “groupEnd()”groupEnd():
void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:148
The console.groupEnd() static method exits the current inline group in the console.
Returns
Section titled “Returns”void
info()
Section titled “info()”info(…
data):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:154
The console.info() static method outputs a message to the console at the ‘info’ log level.
Parameters
Section titled “Parameters”…any[]
Returns
Section titled “Returns”void
log(…
data):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:160
The console.log() static method outputs a message to the console.
Parameters
Section titled “Parameters”…any[]
Returns
Section titled “Returns”void
table()
Section titled “table()”table(
tabularData?,properties?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:166
The console.table() static method displays tabular data as a table.
Parameters
Section titled “Parameters”tabularData?
Section titled “tabularData?”any
properties?
Section titled “properties?”string[]
Returns
Section titled “Returns”void
time()
Section titled “time()”time(
label?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:172
The console.time() static method starts a timer you can use to track how long an operation takes.
Parameters
Section titled “Parameters”label?
Section titled “label?”string
Returns
Section titled “Returns”void
timeEnd()
Section titled “timeEnd()”timeEnd(
label?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:178
The console.timeEnd() static method stops a timer that was previously started by calling console/time_static.
Parameters
Section titled “Parameters”label?
Section titled “label?”string
Returns
Section titled “Returns”void
timeLog()
Section titled “timeLog()”timeLog(
label?, …data?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:184
The console.timeLog() static method logs the current value of a timer that was previously started by calling console/time_static.
Parameters
Section titled “Parameters”label?
Section titled “label?”string
…any[]
Returns
Section titled “Returns”void
timeStamp()
Section titled “timeStamp()”timeStamp(
label?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:185
Parameters
Section titled “Parameters”label?
Section titled “label?”string
Returns
Section titled “Returns”void
trace()
Section titled “trace()”trace(…
data):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:191
The console.trace() static method outputs a stack trace to the console.
Parameters
Section titled “Parameters”…any[]
Returns
Section titled “Returns”void
warn()
Section titled “warn()”warn(…
data):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:197
The console.warn() static method outputs a warning message to the console at the ‘warning’ log level.
Parameters
Section titled “Parameters”…any[]
Returns
Section titled “Returns”void