Skip to main content

A lightweight audit logging library with pluggable backends

Project description

Litewave Audit Library

Internal audit logging library for Litewave services.

Usage

from litewave_audit_lib import get_logger

# Get a logger with NATS backend
logger = get_logger(
    nats_connection_url="nats://username:password@your-nats-server:4222"
)

# Log an audit event
logger.log(
    who="user@email.com",
    resource="document",
    action="view",
    location="cloud",
    request_context={"ip": "127.0.0.1"},
    context={"document_id": "doc123"},
    client={}

Features

  • Automatic reconnection handling
  • Connection retry logic
  • Proper error handling and logging
  • Type hints for better IDE support
  • Automatic cleanup of NATS connections

Dependencies

  • nats-py (for NATS backend)

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

litewave_audit_lib-0.1.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

litewave_audit_lib-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file litewave_audit_lib-0.1.2.tar.gz.

File metadata

  • Download URL: litewave_audit_lib-0.1.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for litewave_audit_lib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e6311b5190de9eb7c7a86e07c5865d22933dc72b1857ef483603d0d3609f33f2
MD5 ef74f6ee243eabbaa07117d4119266ee
BLAKE2b-256 f6a46409c7d00a16806b823a1cb9c05a1caed60c6ce59fe96872266c5d98b844

See more details on using hashes here.

File details

Details for the file litewave_audit_lib-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for litewave_audit_lib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8537cd9b7661a02710e92258989b697005645791155a90d75165350bc29d0140
MD5 115673a8df9c282ee555348bf2c8f0e6
BLAKE2b-256 cbfe13e0d7e985aeee87d62d57b5a8242932250ddd41e5297200262ad148d9a1

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