A shim that redirects stderr/stdout to the Apple System Log (NSLog)
Project description
std-nslog
std-nslog is a shim that redirects stderr/stdout to the Apple System Log (NSLog). This can be useful when deploying Python code as a standalone app on macOS or iOS.
Usage
std-nslog primary exists as a utility for briefcase deployments. You shouldn't ever need to install it yourself. However, just in case...
To install std-nslog:
$ pip install std-nslog
Then, in your code, import nslog
. This will install the shim. The file
only needs to be imported once; preferably as early as possible in the
Once installed, all output written to stdout and stderr will be redirected to the Apple System Log.
Why no pun?
While an obscure joke referencing apples and logs might be amusing, it would make no sense when it appeared in a Briefcase requirements file.
Community
std-nslog is part of the BeeWare suite. You can talk to the community through:
We foster a welcoming and respectful community as described in our BeeWare Community Code of Conduct.
Contributing
If you experience problems with std-nslog, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file std-nslog-1.0.3.tar.gz
.
File metadata
- Download URL: std-nslog-1.0.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67fe2bb23562a553f5340b140c90c2e2251626741140e3029e708b0cc3b7743 |
|
MD5 | 4dd7e91c5d92e1dbf020772243f62357 |
|
BLAKE2b-256 | fb5d5663fad304c78f9578567d27ed01bab2878114111f7717b0933795cb0a0f |
File details
Details for the file std_nslog-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: std_nslog-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 929745068b4f6572326fa2ddf2d8f77e302a116b3b4e61027d987e7a38a816b7 |
|
MD5 | 25facd7e0953621b14feb05b946fd416 |
|
BLAKE2b-256 | 02c7a720a2c2ea23a41026e0766d3e8d74b173ffeb852dda22f9f65ddf5aab32 |