summaryrefslogtreecommitdiff
path: root/.changeset/odd-books-live.md
blob: 40f0d7c1762a278d3b284fd546f79022809d70b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
'astro': minor
---

Integrations can now log messages using Astro’s built-in logger.

The logger is available to all hooks as an additional parameter:

```ts
import {AstroIntegration} from "./astro";

// integration.js
export function myIntegration(): AstroIntegration {
    return {
        name: "my-integration",
        hooks: {
            "astro:config:done": ({ logger }) => {
                logger.info("Configure integration...");
            }
        }
    }
}
```