Registry / observability / loggly-python-handler

loggly-python-handler

JSON →
library1.0.1pypypiunverified

A Python logging handler that sends log messages to Loggly's cloud-based log management service. Current version 1.0.1 (last updated 2021). Release cadence is low; no recent updates. Supports both HTTP and HTTPS endpoints with optional tags and SSL verification.

pip install loggly-python-handler
INSTALL
IMPORT
SIG · LOGGLY-PYTHON-HAND
L
loggly-python-handler
observabilitypythonv1.0.1
Install
2.1s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.1s · import 0.000s · 22MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LogglyHandler
from loggly import LogglyHandler
from loggly.handlers import LogglyHandler

Sets up a basic Loggly handler that sends logs to the default HTTP endpoint. Replace 'your-customer-token' with your Loggly customer token.

import logging from loggly.handlers import LogglyHandler token = os.environ.get('LOGGLY_TOKEN', 'your-customer-token') handler = LogglyHandler('https://logs-01.loggly.com/inputs/' + token + '/tag/python/') handler.setLevel(logging.INFO) logger = logging.getLogger(__name__) logger.addHandler(handler) logger.info('Hello from loggly-python-handler')
Debug
Known issues
gotchaThe handler uses synchronous HTTP(S) requests by default, which can block your application. Consider using async or queue-based logging in production.
fix
Use loggly.handlers.LogglyHandler with a queued handler or offload logging to a separate thread.
affects: all
gotchaSSL verification fails in some environments (e.g., corporate proxies, outdated cert bundles). The handler has no easy way to disable SSL verification.
fix
Set the environment variable PYTHONHTTPSVERIFY=0 or patch the handler to pass verify=False; otherwise use HTTPS with proper certificates.
affects: all
Upgrade
Version history
1.0.1latest on PyPI · released Jan 3, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
2
Resources
loggly-python-handler — pip install loggly-python-handler · libregistry