changelog for logger

This commit is contained in:
Emanuele Stoppa 2023-07-25 15:16:29 +01:00
parent e635660a87
commit 096281db93

View file

@ -0,0 +1,20 @@
---
'astro': minor
---
Astro integrations now accept a logger. The logger is available to all hooks as
an additional parameter:
```js
// integration.js
export function myIntegration(): AstroIntegration {
return {
name: "my-integration",
hooks: {
"astro:config:done": (options, { logger }) => {
logger.info("Configure integration...");
}
}
}
}
```