Skip to content

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

License

Notifications You must be signed in to change notification settings

beeware/std-nslog

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.

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages