---
url: /reference/api/logger/prompts.Variable.taskLog.md
---
# Variable: taskLog

```ts twoslash
// @include: imports
const taskLog: (opts) => object;
```

Defined in: node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:938

Renders a log which clears on success and remains on failure

## Parameters

`opts`

[`TaskLogOptions`](prompts.Interface.TaskLogOptions.md)

## Returns

`object`

`error()`

(`message`, `opts?`) => `void`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:945

`group()`

(`name`) => `object`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:940

`message()`

(`msg`, `mopts?`) => `void`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:939

`success()`

(`message`, `opts?`) => `void`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:946
