# LogEnricher

Source: /tuil/docs/reference/packages/logging/api/log-enricher
Locale: en

interface exported by @mwillbanks/tuil-logging.



{/* Generated by tooling/docs/generate-reference.ts. */}

## interface [#interface]

Public interface exported by `@mwillbanks/tuil-logging`.

```ts
export interface LogEnricher {
  readonly id: string;
  enrich(record: LogRecord): LogRecord;
}
```

## Members [#members]

| Member   | Type                               | Required | Description                                                               | Related types                                                  |
| -------- | ---------------------------------- | -------- | ------------------------------------------------------------------------- | -------------------------------------------------------------- |
| `id`     | `string`                           | Yes      | The `id` member uses the `string` contract.                               | —                                                              |
| `enrich` | `(record: LogRecord) => LogRecord` | Yes      | The `enrich` member uses the `(record: LogRecord) => LogRecord` contract. | [`LogRecord`](/tuil/docs/reference/packages/logging/api/log-record) |

## Parameters [#parameters]

This declaration has no public members.

## Returns [#returns]

This declaration does not return a value.

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

* [`LogRecord`](/tuil/docs/reference/packages/logging/api/log-record)

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/logging/src/index.ts)

## Package [#package]

[@mwillbanks/tuil-logging](/tuil/docs/reference/packages/logging)
