Skip to main content

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)

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)

Source distribution for XMLLayout 1.0
File Size Uploaded
XMLLayout-1.0.tar.gz 4.4 kB 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

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

0.3

4 release files

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