Skip to main content

A shim that redirects stderr/stdout to the Apple System Log (NSLog)

Project description

Generic BeeWare Logo

std-nslog

Python Versions PyPI Version Maturity BSD License Discord server

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

std-nslog-1.0.3.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

std_nslog-1.0.3-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page