gh-130940: Modify default behavior of `PyConfig.use_system_logger` to… · python/cpython@dd6d24e · GitHub
Skip to content

Commit dd6d24e

Browse files
authored
gh-130940: Modify default behavior of PyConfig.use_system_logger to enable on iOS (#131172)
Modify default behavior of use_system_log to enable on iOS.
1 parent f7ac656 commit dd6d24e

4 files changed

Lines changed: 22 additions & 6 deletions

File tree

Doc/c-api/init_config.rst

Lines changed: 7 additions & 2 deletions

Doc/using/ios.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ To add Python to an iOS Xcode project:
297297
* Writing bytecode (:c:member:`PyConfig.write_bytecode`) is *disabled*;
298298
* Signal handlers (:c:member:`PyConfig.install_signal_handlers`) are *enabled*;
299299
* System logging (:c:member:`PyConfig.use_system_logger`) is *enabled*
300-
(optional, but strongly recommended);
300+
(optional, but strongly recommended; this is enabled by default);
301301
* ``PYTHONHOME`` for the interpreter is configured to point at the
302302
``python`` subfolder of your app's bundle; and
303303
* The ``PYTHONPATH`` for the interpreter includes:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The behavior of ``PyConfig.use_system_logger`` was modified to be enabled by
2+
default on iOS. It remains disabled by default on macOS.

Python/initconfig.c

Lines changed: 12 additions & 3 deletions

0 commit comments

Comments
 (0)