Skip to main content

A simple logging utility.

Project description

loggy

A simple logging utility.

Badge for GitHub issues. Badge for GitHub forks. Badge for GitHub stars. Badge for GitHub license, MIT. Badge for sharable Twitter link. Pytest PyPI version

Installation

To install the package locally use the following:

pip install get-loggy

Features

  • Color support
  • Custom color support (advanced)
  • Add additional logging levels
  • Optional log stream vs. log file
  • Log record format
  • Package level logging

Usage

Loggy exists as a simple interface for some standard logging in Python. This is done at the package level, not by name.

from loggy import loggy

log = loggy.get_loggy()

log.info("Something")

>>> 2022-06-21 20:16:39 PM PDT | INFO | something | (<stdin>:1:<module>) |

Advanced usage

Custom colors can be created or added along with custom logging levels. See the conftest.py for an example.

Initial setup

The following GitHub secrets will need to be added in order to release the PyPI packages without the CI failing:

  • TEST_PYPI_API_TOKEN
  • PYPI_API_TOKEN

These can be generated using the following links:

Running tests

Pytest is used as the test runner. To install and run tests use the requirements-dev.txt and execute with pytest.

Note: Use a virtual environment. The steps to create one are left to the user, there are many packages that accomplish this.

pip install -r requirements-dev.txt
pytest

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

get-loggy-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

get_loggy-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file get-loggy-0.0.1.tar.gz.

File metadata

  • Download URL: get-loggy-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for get-loggy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3b9ea4acfeacf583cfbe4fdce1a4a40b89d4ea7db666189cd7bd83a25500736b
MD5 fad29e6d8c1efa1b1ddb1c8dccaeb5d8
BLAKE2b-256 6066ca0dd2f1fb2e100eb919f6d2faacc043eaf30b7900a255496e3b4fb852e4

See more details on using hashes here.

File details

Details for the file get_loggy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: get_loggy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for get_loggy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad72a7747bbd973892eeb9779991191e5f990c5c58304a58fa35761fc9d92214
MD5 98a66e572bcdf93b9a5df386c395ed23
BLAKE2b-256 c698188c098fdaca32806df1136591aa121ca2b137c2decc7d6abb0be4eeb0c4

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