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.3

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.3
File Size Uploaded Provenance Actions
nyssa_ai_logging-0.2.3.tar.gz 17.3 kB With provenance Details for nyssa_ai_logging-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 39.7 kB

Release files / nyssa_ai_logging-0.2.3.tar.gz

Download URL nyssa_ai_logging-0.2.3.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
509fda9ebd1c3a5e3f41b7b7491921b9001ef19c6125000f4ad2827214d9b7f8
BLAKE2b-256 checksum
How to use checksums
65085a179a58aadff7e26d217268174bd4786589b26de4adffb352f63aa4e426
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 Nov 2, 2026.

Transparency log

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

Download URL nyssa_ai_logging-0.2.3-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
804ffea0b6f5a8d84f4225641ece39ce796ee11ec892f62f09ebdd740b9f82dc
BLAKE2b-256 checksum
How to use checksums
6578d1201e340718c00fe578503107a7faaefa110fd925fb9ec8431eda9f2910
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 Nov 2, 2026.

Transparency log

Security for nyssa-ai-logging 0.2.3

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.3.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 Nov 2, 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.3 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