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 Common errors
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.
Warnings
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.
Imports
- send_log
from pismosendlogs import send_log - PismoLogger
from pismosendlogs import PismoLogger
Quickstart
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")