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.5.tar.gz (116.2 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.5-py3-none-any.whl (160.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartinspect_py-4.0.5.tar.gz
  • Upload date:
  • Size: 116.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for smartinspect_py-4.0.5.tar.gz
Algorithm Hash digest
SHA256 d1d22e6275e38d994299aabc030c1e72ed0414badd2b3d459e9a2d52108234fb
MD5 fe96f3cdee341707df5539355fd06c61
BLAKE2b-256 706b796b0d14ea9f9519c4169a60b2ee2d82335b53e56990b5262aab8cb5d84a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smartinspect_py-4.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 694b606e4ad60098839351378e46b0a405ade9e64de8f79525346662e9cd089e
MD5 5943438e0e6cce1d93c8d98cfaf4f03e
BLAKE2b-256 6f2492aa6beb25be15820782a8ead45e02afdc315d86899b43c88cfbe35455f6

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