Skip to main content

nyssa-ai-logging

nyssa-ai-logging provides lightweight, operational logging destinations for Python systems, matching the operational behavior and JSON schema of NyssaAI.Logging (nyssa-ai-logging-cs) and @nyssa-ai/logging (nyssa-ai-logging-ts). It delivers essential operational sinks—structured rotating JSON files, owner-only access controls, independent STDERR/STDOUT routing, and fail-safe execution—without introducing heavy external logging dependencies.

  • Rotating JSONL persistence: Automatically rotates at 10 MiB with 5 numbered backups and 30-day retention.
  • Clean protocol streams: Routes diagnostics to sys.stderr by default while keeping sys.stdout unpolluted for machine protocols (e.g. CLI pipes, MCP servers).
  • Cross-account privacy: Enforces POSIX 0600 file modes / 0700 directories and Windows DACLs to prevent unauthorized cross-account log reads.
  • Crash-proof execution: Degrades gracefully to STDERR diagnostics without throwing exceptions or aborting execution on sink errors.
  • Zero-ceremony integration: Provides a fluent configuration builder and an action-taking Logger protocol for Dependency Injection.

Simple setup, ordinary logging

Register logging during startup, then inject Logger into the classes that need it. create_nyssa_logging() registers standard error output by default, with Information and higher levels enabled:

from nyssa_ai_logging import create_nyssa_logging

logging = (
    create_nyssa_logging("logs/service.log")
    .with_rotating_json_log("logs/application.json")
    .with_console()
)

logger = logging.create_logger("OrderService")
logger.info("Order {OrderId} placed", {"OrderId": 1042}, operation="OrderPlaced")

The JSON file

The log file contains one complete JSON object per line matching the cross-language record schema:

{
  "Timestamp": "2026-10-12T14:23:45.123456+00:00",
  "Level": "Information",
  "Message": "Order 1042 placed",
  "Module": "OrderService",
  "Operation": "OrderPlaced",
  "Exception": null,
  "AdditionalFields": {
    "OrderId": 1042
  }
}

Rotation and retention

Setting Behavior
Rotation threshold 10 MiB, or 10,485,760 bytes.
Backup count Up to five numbered backups beside the active file.
Backup names service.log.1 is the newest; service.log.5 is the oldest.
Age limit Backups older than 30 days are pruned at startup and during rotation.

Metadata

Release files for nyssa-ai-logging 0.2.2

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

Source distribution (sdist)

Source distribution for nyssa-ai-logging 0.2.2
File Size Uploaded Provenance Actions
nyssa_ai_logging-0.2.2.tar.gz 15.8 kB With provenance Details for nyssa_ai_logging-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nyssa-ai-logging 0.2.2
File Interpreter ABI Platform Actions
nyssa_ai_logging-0.2.2-py3-none-any.whl Python 3 none any Details for nyssa_ai_logging-0.2.2-py3-none-any.whl

Total release size: 38.2 kB

Release files / nyssa_ai_logging-0.2.2.tar.gz

Download URL nyssa_ai_logging-0.2.2.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
95aac510f71a325a77de6dff01582bc10cbb1c66f95ed308200fe6d1ff997684
BLAKE2b-256 checksum
How to use checksums
225e35213033f48065ac47dd5719bf56b9b191f790d910df60ad46d37c736ec9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / nyssa_ai_logging-0.2.2-py3-none-any.whl

Download URL nyssa_ai_logging-0.2.2-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b85ffcd9080f827b9bd2544b1b6ad309d0ad30f8346e72ffa074bbd459f72da
BLAKE2b-256 checksum
How to use checksums
9d4b49d54660271d90ae77b37e1b5a072a6b966279138510fde8daf9cd39d924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for nyssa-ai-logging 0.2.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nyssa_ai_logging-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

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

0.2.2 This release

2 release files Full 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