Skip to main content

Colorable, scalable logger for CLI

Project description

inSPy-Logger

GitHub Workflow Status Codacy grade GitHub release (latest by date including pre-releases) PyPI GitHub issues PyPI - Format

Installation

Prerequisites:

Platform/Env:

  • Python: ^3.6.3
  • PIP: (If you want to install via PIP, that is)

inSPy-Logger Runtime Dependencies: I am providing this list of dependencies for transparency and for instances where one would not be able to install inSPy-Logger via PyPi's package manager. It is highly recommended you use python3 -m pip install inspy_logger==<ver> to install inSPy-Logger 2.0+

Installation via Pip on Python 3.6.3+ (recommended method):

  • $> python3 -m pip install inspy_logger==<version>

Test out InspyLogger:

import inspy_logger

# Set up a log device object. The first parameter is the root loggers name, and the second is the debug level
log_device = inspy_logger.InspyLogger('LogName', 'debug')

# Start a running log from that device
log = log_device.start()

# Output our own logger lines:
log.debug('This is a debug log entry')
log.info('This is an info log entry')
log.warning('This is a warning log entry!')
log.error('This is an error log entry!')
log.exception('This is an exception log entry!')

If you run the code above you'll get output similar to this:

output1

v2.0+ repository for inSPy-Logger

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

inspy_logger-3.2.2.tar.gz (43.9 kB view details)

Uploaded Source

Built Distribution

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

inspy_logger-3.2.2-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

Details for the file inspy_logger-3.2.2.tar.gz.

File metadata

  • Download URL: inspy_logger-3.2.2.tar.gz
  • Upload date:
  • Size: 43.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.7 Windows/11

File hashes

Hashes for inspy_logger-3.2.2.tar.gz
Algorithm Hash digest
SHA256 ef63ea16ccc3e25f6b29f94ad47b0b3b2c79a7f3c354b6557d54caac9c996bce
MD5 da5e6cf3ba744ea3b9a4d3ee2c95cc06
BLAKE2b-256 4f38d91c06fcf6cb783bb5cd5ff1f0e311d91d2db5392d7377252c57a73f4b78

See more details on using hashes here.

File details

Details for the file inspy_logger-3.2.2-py3-none-any.whl.

File metadata

  • Download URL: inspy_logger-3.2.2-py3-none-any.whl
  • Upload date:
  • Size: 59.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.7 Windows/11

File hashes

Hashes for inspy_logger-3.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f17c91bd9d16f07a46979ad9855b24ad3ea77f7b96ed31376204e6abce2455e
MD5 af4870ee61bb992ecd0b54a0c76f36b4
BLAKE2b-256 6a0d76d3e7b5a023aec5641a6d575ec0593c766b7c9d05db1ab4a809c6e8bbe8

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