Skip to main content

Loglet

Loglet is a tiny tool for keeping tabs on long-running processes. Send log messages to Loglet using a simple POST request and then view them in your browser or subscribe to an Atom feed.

This Python package provides a small client library of Loglet. You can creates a new loglet simply by this and send messages by using standard logging interface. For example:

import logging
from loglet import LogletHandler

logger = logging.getLogger(__name__)
loglet = LogletHandler(mode='threading')
logger.addHandler(loglet)
logger.setLevel(logging.DEBUG)

logger.info('hello')
logger.error('something horrible has happened')

If you have a loglet already, you can specify logid explicitly:

loglet = LogletHandler('2LNbYgNEAaezJduj')

There are 4 types of sync/async modes:

'sync' (default)

Simply sends all logs synchronously. It can affect serious inefficiency to your application.

'threading'

Sends all logs asynchronously by using standard threading module. Threads are rich and heavy to use for just input/output.

'multiprocessing'

Sends all logs asynchronously by using standard multiprocessing module. It requires to use Python 2.6 or higher. It forks for every message internally.

'gevent'

Sends all logs asynchronously by greenlet (coroutine). It requires to install gevent. Most efficient way though additional dependency is required.

Metadata

Release files for loglet 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 loglet 1.0
File Size Uploaded Provenance Actions
loglet-1.0.tar.gz 3.4 kB Without provenance Details for loglet-1.0.tar.gz

Release files / loglet-1.0.tar.gz

Download URL loglet-1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
616958549f1b334366fc65c02132bec800d62b10d43678152f97eb2c7fdad15f
BLAKE2b-256 checksum
How to use checksums
3182354c0f472b5cb291cceda67259e585feb350756d5296f049a1494a867b3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for loglet 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.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

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