Skip to content

Commit 263e7f9

Browse files
authored
docs: add proper applies_to version to ensure_ascii doc (#191)
docs: add proper applies_to version to ensure_ascii doc
1 parent 908d4e4 commit 263e7f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/reference/installation.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ formatter = StdlibFormatter(
103103

104104
#### Controlling ASCII encoding [_controlling_ascii_encoding]
105105

106+
```{applies_to}
107+
product: ga 2.3.0
108+
```
109+
106110
By default, the `StdlibFormatter` escapes non-ASCII characters in the JSON output using Unicode escape sequences. If you want to preserve non-ASCII characters (such as Chinese, Japanese, emojis, etc.) in their original form, you can use the `ensure_ascii` parameter:
107111

108112
```python
@@ -166,6 +170,10 @@ logger.debug("Example message!")
166170

167171
#### Controlling ASCII encoding for Structlog [_structlog_ascii_encoding]
168172

173+
```{applies_to}
174+
product: ga 2.3.0
175+
```
176+
169177
Similar to `StdlibFormatter`, the `StructlogFormatter` also supports the `ensure_ascii` parameter to control whether non-ASCII characters are escaped:
170178

171179
```python

0 commit comments

Comments
 (0)