Skip to main content

Utilities for logging and sending logs.

Project description

liblogging

Utilities for logging and sending logs.

Usage

from liblogging.logger import logger

# Log a simple message
logger.info("This is an info message")

# Log a message with context
logger.track_start("Starting process", message_type="process_start")
logger.track_end("Ending process", message_type="process_end")

# Log a request
@log_request("user_id", "session_id")
def process_request(user_id, session_id):
    logger.info("Processing request")

process_request(user_id=123, session_id="abc")

Tips

  1. If using Kafka to send messages, please use kafka-python==2.0.2.

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

liblogging-0.1.6.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

liblogging-0.1.6-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file liblogging-0.1.6.tar.gz.

File metadata

  • Download URL: liblogging-0.1.6.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for liblogging-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d652d732f808dc6a156091cfaa2e154584f23cda4143ff5a0efb406e8d18f962
MD5 7f449f1c467db42ab16d120c113013af
BLAKE2b-256 d35a55b49851be47d8a04cf10c1b9896aea03dcae129279f3856f65c3ee48d46

See more details on using hashes here.

File details

Details for the file liblogging-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: liblogging-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for liblogging-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e6e12d04ce13395889a1127c78a80e2f7ec5288bc04706f01e7847533832e8c0
MD5 badaad94c9233fbbe6657cded6f7773b
BLAKE2b-256 92bf92a0541a5a9640adee07a8c50421f57737bc5d7b3d096350a2af1bd5e0ad

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