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.7.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.7-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: liblogging-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 95d31a060d7e385c58ce9e16cb20c4a118ffcaf2709904030c6cb467a540a7cd
MD5 3884f1ca56e424298a3525917f66255f
BLAKE2b-256 0bbd54d065591312b2c918a17a89a3d8c245a86d9bb8d2be7335efa4436a5396

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liblogging-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b1c618df7ab6b900e0f038709f776b2e9d0f4898e9b59b514befcaa4bf12433c
MD5 1ab3cd37ccb845e794fcd6584d349498
BLAKE2b-256 108038acaebe1baa93b477b4e76c3a83d334cb0b2f85ea00da1e684b5c5274d3

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