twixxy - twiggy + twisted
twixxy consists primarily of twisted log observer which can installed to forward calls to log.msg and log.err to the appropriate Twiggy log methods.
Using with twistd
twixxy provides a log observer factory compatible with twistd --logger.
> twistd --logger=twixxy.observerFactory -n web --path=. 2012-06-19T22:09:43Z:INFO:twisted:Log opened. 2012-06-19T22:09:43Z:INFO:twisted:twistd 12.1.0 (/Users/dreid/.virtualenvs/twixxy/bin/python 2.7.1) starting up. 2012-06-19T22:09:43Z:INFO:twisted:reactor class: twisted.internet.selectreactor.SelectReactor. 2012-06-19T22:09:43Z:INFO:twisted:Site starting on 8080 2012-06-19T22:09:43Z:INFO:twisted:Starting factory <twisted.web.server.Site instance at 0x10b718fc8>
Replacing Twisted’s Logging without twistd.
import sys
import twiggy
from twisted.python import log
from twixxy import TwiggyLoggingObserver
twiggy.quickSetup(file=sys.stdout)
observer = TwiggyLoggingObserver('example')
log.startLoggingWithObserver(observer.emit)
log.msg('Hello, World!')
Using in conjunction with Twisted’s logging.
import sys
import twiggy
from twisted.python import log
from twixxy import TwiggyLoggingObserver
twiggy.quickSetup(file='twiggy.log')
observer = TwiggyLoggingObserver('example2')
observer.start()
log.startLogging(sys.stdout)
log.msg('Hello, World!')
Metadata
Release files for twixxy 0.1.1
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 |
|---|---|---|---|---|
| twixxy-0.1.1.tar.gz | 3.5 kB | Without provenance | Details for twixxy-0.1.1.tar.gz |
Release files / twixxy-0.1.1.tar.gz
| Download URL | twixxy-0.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a1317932a482d95b77e799781d71cc8a8dc6a919e7b84e344b772c8aafc2020
|
|
BLAKE2b-256 checksum How to use checksums |
e13c134aa01466df33d87e189e838d09e86c427b486a84741ad364c6354852ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for twixxy 0.1.1
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.