# Logger.error() method · @imqueue/async-logger

Source: https://imqueue.org/api/async-logger/latest/async-logger.logger.error/
Published: 2026-07-31
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/async-logger 3.2.0 — generated reference, not hand-written

Logs at ERROR level.

**Signature:**

```typescript
error(...args: any[]): void;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| args | any\[\] | `console.error`-style arguments; the first may be a format string with `%s`/`%d`/`%j` placeholders for the rest |


**Returns:**

void

## Remarks

Pass an `Error` and it is formatted like the console would — including the stack. Passing `error.stack` explicitly is the usual choice when the record has to stay one line for a log shipper.

