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
feat: switch logging to os_log via oslog crate, use cfg(debug_assertions)
Replace manual eprintln! logger with Apple's unified logging system
(os_log) using the oslog crate. Logs now appear in Console.app under
subsystem "com.specter", category "memory".
Replace cfg(feature = "dev_release") with cfg(debug_assertions) across
all modules so debug logging is automatic in debug builds with no
feature flag needed. Remove the dev_release feature from Cargo.toml.
Bump version to 1.0.5.
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,17 @@ make check # verify exported symbols match specter.h
33
33
-L<path> -lspectre -lc++ -framework Foundation -framework Security
34
34
```
35
35
36
+
## Debug logging
37
+
38
+
Debug builds automatically log to Apple's unified logging system (`os_log`). Messages appear in **Console.app** under subsystem `com.specter`, category `memory`.
39
+
40
+
To filter in Console.app, use:
41
+
42
+
```
43
+
subsystem:com.specter category:memory
44
+
```
45
+
Logging is compiled out of release builds (`cfg(debug_assertions)`).
46
+
36
47
## Docs
37
48
38
49
[docs/usage.md](docs/usage.md) — C/C++ API reference and examples
0 commit comments