Skip to main content
Version on Pypi Test status (master) Docs build status (master)

Overview

This package is only for macOS and requires macOS 10.12 or higher.

Its purpose is to insert log messages into the unified logging and tracing system of macOS. It does not support reading the unified log.

Installation

To install the latest released version of the macos_oslog package into your active Python environment:

$ pip install macos-oslog

This will also install any prerequisite Python packages.

For more details and alternative ways to install, see Installation.

Documentation

Change History

Quick Start

Example Python code:

#!/usr/bin/env python
import macos_oslog

log = macos_oslog.os_log_create(subsystem="com.acme.myapp", category="all")
macos_oslog.os_log(log, macos_oslog.OS_LOG_TYPE_ERROR, "Some error happened")
macos_oslog.os_log_release(log)

Example Python code using the predefined standard log provided by macOS:

#!/usr/bin/env python
import macos_oslog

macos_oslog.os_log(macos_oslog.OS_LOG_DEFAULT, macos_oslog.OS_LOG_TYPE_ERROR, "Some error happened")

Contributing

For information on how to contribute to the macos-oslog project, see Contributing.

License

The macos-oslog project is provided under the Apache Software License 2.0.

Metadata

Release files for macos-oslog 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for macos-oslog 0.5.0
File Size Uploaded
macos-oslog-0.5.0.tar.gz 12.5 kB Details

Release files / macos-oslog-0.5.0.tar.gz

Download URL macos-oslog-0.5.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5aabc9953f50dcde7a8b77225ca940a18f4ceaa107d0ef36ba3ac50662ec4c71
BLAKE2b-256 checksum
How to use checksums
c5f633301b3c5c45f1a8c5872f0970b46862344872f788a1e8e9236847395350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page