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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for std-nslog-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b67fe2bb23562a553f5340b140c90c2e2251626741140e3029e708b0cc3b7743
MD5 4dd7e91c5d92e1dbf020772243f62357
BLAKE2b-256 fb5d5663fad304c78f9578567d27ed01bab2878114111f7717b0933795cb0a0f

See more details on using hashes here.

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

Hashes for std_nslog-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 929745068b4f6572326fa2ddf2d8f77e302a116b3b4e61027d987e7a38a816b7
MD5 25facd7e0953621b14feb05b946fd416
BLAKE2b-256 02c7a720a2c2ea23a41026e0766d3e8d74b173ffeb852dda22f9f65ddf5aab32

See more details on using hashes here.

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