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.1.tar.gz (115.9 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.1-py3-none-any.whl (160.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for smartinspect_py-4.0.1.tar.gz
Algorithm Hash digest
SHA256 c0a10447ecf47b7113351b6df1d75ddabb26f5c711e953e3ea615157df7e3b05
MD5 64c72c2e20a10e80e24aeb0963f3e7f6
BLAKE2b-256 8da2bc085b6a38bfb8d4a0b55f90933fd831b0353ca7cd99b8d7712b206cba67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smartinspect_py-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47f471bd02dc9eaa7c02d062126844a93f9aafc06ed1463ce1af2b482648b617
MD5 e158976507c6fec2d8847b41cc024080
BLAKE2b-256 4bcbc7d2ddce80542ec35952880f74f35f6705b2bb4e8fe9fa60e2e7eb09bb7b

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