function · Browser and Node

# problem

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/types.ts#L107)

Import:

```ts
import { problem } from "@toip-tools/eventlog";
```

## Declaration

Signature:

```ts
problem(code: ProblemCode, message: string, logId?: Qb64, s?: number): Problem;
```

### Parameters

- **`code` (required)**: `ProblemCode`
- **`message` (required)**: `string`
- **`logId` (optional)**: `string | undefined`
- **`s` (optional)**: `number | undefined`

### Returns

`Problem`

[Usage guide](https://toip.tools/toolkit/eventlog/#usage) · [Error handling](https://toip.tools/toolkit/eventlog/#errors) · [All exports](https://toip.tools/toolkit/eventlog/api/)

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/problem/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
