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.3.tar.gz (116.1 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.3-py3-none-any.whl (160.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartinspect_py-4.0.3.tar.gz
  • Upload date:
  • Size: 116.1 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.3.tar.gz
Algorithm Hash digest
SHA256 09a98caec0288388775a9e7ab8906eb5069b899aa69b9056f746a685e3790726
MD5 81b9d9088007cced04ae24133a5ffa8a
BLAKE2b-256 97d2f4b5d992ff0647e92c1631df9facaf05687e46087388f2876a16254ae564

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smartinspect_py-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1bea5682348643b2ba3d1574d167cbbd0a8e540358c5df1f1f9c6b1c24d7777c
MD5 910f9884540a5469ed48ce468f0af542
BLAKE2b-256 37ae06fb5311e4f1e24a73aa1f6bcbe768484e0e0e4d4229c33b6a8ccd08f35a

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