Skip to content

Commit 985da19

Browse files
authored
fix: logger version (#14026)
1 parent d0fb1a6 commit 985da19

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/content/docs/en/reference/api-reference.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,15 +1234,15 @@ content="
12341234
<p>
12351235

12361236
**Type**: `object | undefined`
1237-
<Since v="6.4.0" />
1237+
<Since v="7.0.0" />
12381238
</p>
12391239

12401240
An object that allows you to add additional logs during the rendering of a page. This is particularly useful with [on-demand routes](/en/guides/on-demand-rendering/) and when connecting log aggregation services (e.g. Kibana, Grafana, Loki).
12411241
#### `logger.error()`
12421242
<p>
12431243

12441244
**Type**: `(msg: string) => void`
1245-
<Since v="6.4.0" />
1245+
<Since v="7.0.0" />
12461246
</p>
12471247

12481248
Emits a message with `error` level.
@@ -1257,7 +1257,7 @@ Astro.logger.error("Can't find the checkout ID.");
12571257
<p>
12581258

12591259
**Type**: `(msg: string) => void`
1260-
<Since v="6.4.0" />
1260+
<Since v="7.0.0" />
12611261
</p>
12621262
Emits a message with `warn` level.
12631263

@@ -1271,7 +1271,7 @@ Astro.logger.warn("Can't find the checkout ID.");
12711271
<p>
12721272

12731273
**Type**: `(msg: string) => void`
1274-
<Since v="6.4.0" />
1274+
<Since v="7.0.0" />
12751275
</p>
12761276

12771277
Emits a message with `info` level.

src/content/docs/en/reference/logger-reference.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ i18nReady: true
77
import Since from '~/components/Since.astro';
88

99
<p>
10-
<Since v="6.4.0" />
10+
<Since v="7.0.0" />
1111
</p>
1212

1313

@@ -116,7 +116,7 @@ A logger that outputs messages in a JSON format. A log would look like this:
116116
<p>
117117
**Type:** `{ pretty: boolean; level: AstroLoggerLevel; }`<br />
118118
**Default:** `{ pretty: false, level: 'info' }`
119-
<Since v="6.4.0" />
119+
<Since v="7.0.0" />
120120
</p>
121121

122122
The `json` logger accepts the following options:
@@ -147,7 +147,7 @@ A logger that prints messages using the `console` as its destination. Based on t
147147
<p>
148148
**Type:** `{ level: AstroLoggerLevel }`<br />
149149
**Default:** `{ level: 'info' }`
150-
<Since v="6.4.0" />
150+
<Since v="7.0.0" />
151151
</p>
152152

153153
The `console` logger accepts the following options:
@@ -175,7 +175,7 @@ This is Astro's default logger.
175175
<p>
176176
**Type:** `{ level: AstroLoggerLevel }`<br />
177177
**Default:** `{ level: 'info' }`
178-
<Since v="6.4.0" />
178+
<Since v="7.0.0" />
179179
</p>
180180

181181
The `node` logger accepts the following options:

0 commit comments

Comments
 (0)