-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Document suppress in supportedAstroFeatures
#11825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
3f89f80
e4cf427
20179bc
a76346c
f7436a8
9bdb63f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -71,6 +71,7 @@ export type AdapterSupportsKind = 'unsupported' | 'stable' | 'experimental' | 'd | |||||||||||||||||||||||||
| export type AdapterSupportWithMessage = { | ||||||||||||||||||||||||||
| support: Exclude<AdapterSupportsKind, 'stable'>; | ||||||||||||||||||||||||||
| message: string; | ||||||||||||||||||||||||||
| suppress?: 'default' | 'all'; | ||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| export type AdapterSupport = AdapterSupportsKind | AdapterSupportWithMessage; | ||||||||||||||||||||||||||
|
|
@@ -428,6 +429,56 @@ export default function createIntegration() { | |||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| If the default log message sent along with your custom message can cause confusion, you can use `suppress: "default"` to suppress the default message: | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| If the default log message sent along with your custom message can cause confusion, you can use `suppress: "default"` to suppress the default message: | |
| ### `suppress` | |
| <p> | |
| **Type:** `default | all`<br /> | |
| <Since v="5.9.0" /> | |
| </p> | |
| An option to prevent showing some or all logged messages. | |
| If Astro's default log message is confusing to the user in combination with your custom `message`, you can use `suppress: "default"` to suppress the default message and only log your message: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Aside: should that be "emit contextual INFORMATION to the logs" ??)
probably, yeah. We found a typo!
Uh oh!
There was an error while loading. Please reload this page.