You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,32 @@
1
1
# Changelog
2
2
3
+
## 2.0.0 (In development)
4
+
5
+
* The shim now writes to Apple's unified logging system (`os_log`) instead
6
+
of the deprecated `NSLog` API. Output written to `stdout` and `stderr`
7
+
appears in Console.app and `log stream` as before, but is now tagged with
8
+
the `OS_LOG_TYPE_DEFAULT` and `OS_LOG_TYPE_ERROR` levels respectively,
9
+
so the two streams can be filtered separately.
10
+
* The `STD_NSLOG_SUBSYSTEM` and `STD_NSLOG_CATEGORY` environment variables
11
+
can be used to associate log output with a specific subsystem and category
12
+
for `log` predicate filtering. If unset, `OS_LOG_DEFAULT` is used,
13
+
preserving the legacy behavior.
14
+
* The package now ships a native extension module (`_oslog_shim`) and is
15
+
therefore distributed as platform-specific wheels for macOS and iOS rather
16
+
than a pure-Python wheel.
17
+
* The `encoding` attribute on the writer is now `"utf-8"` (previously `"utf-16-le"` / `"utf-16-be"`), reflecting the underlying API.
18
+
3
19
## 1.0.3 (November 25 2022)
4
20
5
-
* Ensure that user-provided strings are escaped when output to the log. This
6
-
could cause segfaults if the user-provided string contained `"%s"` (or other
7
-
C-style formatting placeholders).
21
+
* Ensure that user-provided strings are escaped when output to the log. This could cause segfaults if the user-provided string contained `"%s"` (or other C-style formatting placeholders).
8
22
9
23
## 1.0.2 (November 17 2022)
10
24
11
-
* Corrected a bug where printing a blank line would cause the previous line
12
-
to be duplicated in the log.
25
+
* Corrected a bug where printing a blank line would cause the previous line to be duplicated in the log.
13
26
14
27
## 1.0.1 (April 7 2022)
15
28
16
-
* Removed the exception handling shim; this can now be handled by the iOS and
17
-
macOS stub apps.
29
+
* Removed the exception handling shim; this can now be handled by the iOS and macOS stub apps.
0 commit comments