PismoSendLogs

raw JSON →
0.2.0 verified Mon Apr 27 auth: no python

A Python library to send logs to Pismo or other endpoints. Current version 0.2.0. In early development with no stable release cadence.

pip install pismosendlogs
error ModuleNotFoundError: No module named 'pismosendlogs'
cause Package not installed.
fix
Run: pip install pismosendlogs
error TypeError: send_log() missing 1 required positional argument: 'api_key'
cause Missing required API key argument.
fix
Pass api_key to send_log() or set PISMO_API_KEY environment variable.
error AttributeError: module 'pismosendlogs' has no attribute 'PismoLogger'
cause Older version or wrong class name (might be Logger).
fix
Check installed version: pip show pismosendlogs. Use from pismosendlogs import Logger if available.
gotcha Library is very early (0.2.0); API may change without notice.
fix Pin to exact version and test on upgrade.
gotcha No documentation beyond PyPI summary; rely on source code or trial and error.
fix Check the source code directly on GitHub.
deprecated Some functions may accept parameters that will be removed in future versions.
fix Use only documented public API; avoid internal functions.

Sends a log message after setting API key via environment variable.

from pismosendlogs import send_log
import os

# Use environment variable for API key
api_key = os.environ.get('PISMO_API_KEY', '')
send_log(api_key=api_key, message="Hello, Pismo!", level="info")