Skip to main content

Client library to integrate SmartInspect logging into Python applications.

Project description

SmartInspect Python Library

SmartInspect

smartinspect-py is a client library to integrate SmartInspect logging into Python applications. It also has a SmartInspect Handler which can be used to dispatch Python logging log records to the destination defined by SmartInspect.

SmartInspect is an advanced logging tool for debugging and monitoring software applications. It helps you identify bugs, find solutions to user-reported issues and gives you a precise picture of how your software performs in different environments. Whether you need logging in the development phase, on production systems or at customer sites, SmartInspect is the perfect choice.

Visit SmartInspect website.

Installation

You can install smartinspect-py with:

$ pip install smartinspect-py

Usage

You can start using smartinspect-py like this:

from smartinspect import SiAuto

# Enable SiAuto and it will be automatically ready to log via
# named pipe on Windows or tcp on Linux/MacOs
SiAuto.si.set_enabled(True)
# Log simple messages, warnings and exceptions
SiAuto.main.log_message("Processing Order 48843")
SiAuto.main.log_warning("Connection refused")
SiAuto.main.log_exception(e)

# Log variable values, SQL cursor data or any other object
SiAuto.main.log_int("index", index)
SiAuto.main.log_object_value("order", order)
SiAuto.main.log_cursor_data("Cursor data", cursor)
SiAuto.si.dispose()

More Python examples available at Code-Partners Github repository.

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

smartinspect_py-4.0.2.tar.gz (116.0 kB view details)

Uploaded Source

Built Distribution

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

smartinspect_py-4.0.2-py3-none-any.whl (160.8 kB view details)

Uploaded Python 3

File details

Details for the file smartinspect_py-4.0.2.tar.gz.

File metadata

  • Download URL: smartinspect_py-4.0.2.tar.gz
  • Upload date:
  • Size: 116.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for smartinspect_py-4.0.2.tar.gz
Algorithm Hash digest
SHA256 3cfbbb82755464f8b44f5fa603efb6caedf252c7884291b491e4d4de460f888c
MD5 f65283cc80b84cf7d5e1bcc4b6d9edaf
BLAKE2b-256 060955d8a296a703d3a02078fd4c8fc2771f47b07d952305b924e66a554f6078

See more details on using hashes here.

File details

Details for the file smartinspect_py-4.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for smartinspect_py-4.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0dd266705e597bf1caef3902797de828d2c151af0dd9f61799242975529eded5
MD5 62369367a5a25cc22f1bf6673a660502
BLAKE2b-256 5ab12e0ddeb70131d4ef7ed26ed44ad647a738de73a2797b88e6e7cfdf6412e4

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