Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Logentries Envs

About

The Logentries Python Handler does not provide a way to get TOKEN from a environment variable. This is a simple project that gives you the ability to have Logentries Token read from a Environment variable.

Install

To install this library, use the following command:

pip install logentries-envs

Usage

Considering the following code on file cool_log.py

#!/usr/bin/env python

import logging
from leenvs import LogentriesHandler


log = logging.getLogger('logentries')
log.setLevel(logging.INFO)
test = LogentriesHandler()

log.addHandler(test)

log.warn("Warning message")
log.info("Info message")

sleep(10)

Now, just set the envvar and you are good to go.

$ export LOGENTRIES_TOKEN="1234-1234-1234-1234"
$ python cool_log.py

Metadata

Release files for logentries-envs 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logentries-envs 0.0.5
File Size Uploaded Provenance
logentries-envs-0.0.5.tar.gz 1.7 kB Without provenance Details

Release files / logentries-envs-0.0.5.tar.gz

Download URL logentries-envs-0.0.5.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
461e246159ccbc6f4fbab84231d39118dc1c6a4d281e7b38bb923a728af7ca34
BLAKE2b-256 checksum
How to use checksums
02db5bf83bbaa4c80cc3ba7ace2a3be1c83cffdb609dadf9189711a02bd90e52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for logentries-envs 0.0.5

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.

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