Skip to main content

Logging utilities for the SciTeX ecosystem

Project description

scitex-logging

Logging utilities for the SciTeX ecosystem.

Installation

pip install scitex-logging

Usage

import scitex_logging

# Configure logging
scitex_logging.configure(level=scitex_logging.INFO, enable_file=True)

# Get a logger
import logging
logger = logging.getLogger(__name__)
logger.info("Hello from SciTeX logging")

# Tee stdout/stderr to log files
import sys
sys.stdout, sys.stderr = scitex_logging.tee(sys)

# Custom error classes
from scitex_logging import SciTeXError, SaveError

# Warning utilities
from scitex_logging import warn_deprecated, warn_performance

# LLM session log parsing
log = scitex_logging.llm.load("session.jsonl")
log.summary()
log.render("out.html")

License

AGPL-3.0 -- see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scitex_logging-0.1.0.tar.gz (78.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_logging-0.1.0-py3-none-any.whl (63.3 kB view details)

Uploaded Python 3

File details

Details for the file scitex_logging-0.1.0.tar.gz.

File metadata

  • Download URL: scitex_logging-0.1.0.tar.gz
  • Upload date:
  • Size: 78.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for scitex_logging-0.1.0.tar.gz
Algorithm Hash digest
SHA256 20bb807a19a5245429d8c4bf1fc98f26986d668bbe00d08e532f4cd1d739d390
MD5 55491d870deea8c737fa01013bd24bf3
BLAKE2b-256 1cd32e1a9e0b37f83ef7bbadb2175a9c0fd3a3f78a0f3b1ea6c3fad386b208a6

See more details on using hashes here.

File details

Details for the file scitex_logging-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scitex_logging-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 63.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for scitex_logging-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7f89ae86f9723dd7aa5d2c4b67a7ed732070cfb846d2f05dc8c7dd3d81a0fe7
MD5 178ff073addb7aff9951d8eb6de9a630
BLAKE2b-256 17c8cf6506d5afdd8baf272b663df3ae76562568690aa380bd26232201e2576f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page