XMLLayout provides a Python logging Formatter that formats log messages as XML, according to log4j’s XMLLayout specification.
XMLLayout formatted log messages can be viewed and filtered within the Chainsaw application (see the example section below), part of the Java based log4j project.
This package also includes a RawSocketHandler – like logging.handler.SocketHandler, but sends the raw log message over the socket instead of a pickled version. RawSocketHandler can be configured to send log messages to Chainsaw directly over a socket.
For example: to forward log messages to Chainsaw, if it were listening on localhost port 4448:
import logging
import xmllayout
handler = xmllayout.RawSocketHandler('localhost', 4448)
handler.setFormatter(xmllayout.XMLLayout())
logging.root.addHandler(handler)
Metadata
Release files for XMLLayout 1.0
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 | |
|---|---|---|---|---|
| XMLLayout-1.0.tar.gz | 4.4 kB | Without provenance | Details |
Release files / XMLLayout-1.0.tar.gz
| Download URL | XMLLayout-1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5c0bb325f3030b67ec894fb83361da42cb87be544155917a9769d0e80d4e333
|
|
BLAKE2b-256 checksum How to use checksums |
1a51383057fc570b3a4096720b5eb90ce2cf560aa27c872ebb606d9723c3b216
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for XMLLayout 1.0
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.