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.0.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

inspy_logger-3.2.0-py3-none-any.whl (55.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inspy_logger-3.2.0.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-41-generic

File hashes

Hashes for inspy_logger-3.2.0.tar.gz
Algorithm Hash digest
SHA256 9aabcce2e73d492447180159ace9515fbe19fff92a8c01e6516c6028099defe1
MD5 3b34ae59a86e285a5e5c2881a3ae8128
BLAKE2b-256 012c02972ab107a983120b80650ad759c6ff8b9d5036212eefe2d7822b379e48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inspy_logger-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 55.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-41-generic

File hashes

Hashes for inspy_logger-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7980bf670b915c27cfc7ddb201c285a24716eb2922ff0bda067ac637ff4843d0
MD5 0c8694e7c1d90460db511ce0eb7b4e44
BLAKE2b-256 56217711282168497915147a32886ba6525900d08182329c00e44a38e7394ea0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page