Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/en/reference/api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ Purges cached entries. Requires a configured cache provider.

<p>

**Type**: `object | undefined`
**Type**: <a href="/en/reference/logger-reference/#astroruntimelogger">`AstroRuntimeLogger`</a>
Comment thread
ronits2407 marked this conversation as resolved.
Outdated
<Since v="7.0.0" />
</p>

Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/en/reference/logger-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@ export default defineConfig({

The following types can be imported from the `astro` specifier.

### `AstroRuntimeLogger`

This is the type of the `logger` object available on `Astro.logger` and `context.logger` in endpoints and middleware.

<p>

**Type:** `{ info: (message: string) => void; warn: (message: string) => void; error: (message: string) => void; }`
</p>
Comment thread
ronits2407 marked this conversation as resolved.

### `AstroLoggerDestination`

This is the interface that custom loggers must implement.
Expand Down
Loading