systemd-logging
https://github.com/idlesign/systemd-logging
Description
Simplifies logging for systemd
Requires Python 3.10+
- No need to compile (pure Python), uses
libsystemd.so. - Simplified configuration.
- Just logging. Nothing more.
Usage
import logging
from systemdlogging.toolbox import init_systemd_logging
# This one line in most cases would be enough.
# By default it attaches systemd logging handler to a root Python logger.
init_systemd_logging() # Returns True if initialization went fine.
# Now you can use logging as usual.
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.debug('My debug message')
try:
raise ValueError('Log me please')
except ValueError:
# Additional context can be passed in extra.context.
logger.exception('Something terrible just happened', extra={
'message_id': True, # Generate message ID automatically.
'context': {
'FIELD1': 'one',
'FIELD2': 'two',
}
}, stack_info=True)
Metadata
Release files for systemd-logging 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| systemd_logging-1.0.2.tar.gz | 5.0 kB | Without provenance | Details for systemd_logging-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| systemd_logging-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for systemd_logging-1.0.2-py3-none-any.whl |
Total release size: 11.0 kB
Release files / systemd_logging-1.0.2.tar.gz
| Download URL | systemd_logging-1.0.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
094e196ce7a55990e1099e05ab87934f187b825409420aa89bc9ce6c3ea18cde
|
|
BLAKE2b-256 checksum How to use checksums |
36a16172f68d7984f521636866b8c8d756e75d268ec6145ea5a7a0bd2cf955fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / systemd_logging-1.0.2-py3-none-any.whl
| Download URL | systemd_logging-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca13a10961aaafb19ee3fbc1bed6791986cc3b8e68f49f25fdcd6d6a04282679
|
|
BLAKE2b-256 checksum How to use checksums |
7bccb592c3dfaf83b3929bf7bcf32dbf450a7e37c3039a64db04c10eed9e75e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for systemd-logging 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.