Skip to main content

A log visualization tool

Project description

README.md

README

LogViz: A Python logging library for colorful and styled console output.

Programmer

  • Owusu Kenneth Gyamfi [okwesi]

Contributors

  • No Contributors currently, but feel free to contribute!

Contribution guidelines

  • Use present perfect tense to comment all code. e.g., "Create a user."
  • Follow PEP8 for code formatting.
  • Run tests via pytest.

Naming conventions

  • Module and variable names: lowercase_with_underscores.
  • Class names: CapWords.
  • Constants: UPPERCASE_WITH_UNDERSCORES.

Requirements

  • Python 3.6+
  • No external dependencies beyond the standard library.

Installation

pip install logviz

Usage

from logviz import logger

if __name__ == "__main__":
    logger.debug("This is a debug message.")
    logger.info("This is an info message.")
    logger.success("This is a success message.")
    logger.warning("This is a warning message.")
    logger.error("This is an error message.")
    logger.critical("This is a critical message.")
    try:
        1/0
    except ZeroDivisionError:
        logger.exception("This is an exception message: Division by zero error occurred!")

Example Output

FCOJt5u.md.png

API Reference

  • get_logger(name: str = "logviz", level: int = logging.NOTSET) -> LogVizLogger
  • Logging methods:
    • logger.debug(msg: str)
    • logger.info(msg: str)
    • logger.success(msg: str)
    • logger.warning(msg: str)
    • logger.error(msg: str)
    • logger.critical(msg: str)
    • logger.exception(msg: str)

Project Structure

logviz/
└── logviz/
    ├── __init__.py
    ├── defaults.py
    ├── formatters.py
    ├── logger.py
    └── styles.py

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

logviz-0.2.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

logviz-0.2.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file logviz-0.2.0.tar.gz.

File metadata

  • Download URL: logviz-0.2.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for logviz-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b9deec5ae29b0dcb77138866142356d1d4997ba4f5861cb2f307b29cda5db9a9
MD5 1d0e1b1a9ee2edbc6d39b219532bf221
BLAKE2b-256 5caeeb1096a171706d3b07d8eeea27eefe0fc1055b907fecf0f2ee59bc085b7e

See more details on using hashes here.

File details

Details for the file logviz-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: logviz-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for logviz-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b37ab8db40facf081bbdf1594d05f7f5840f1ceef42582f0703715b50b50752
MD5 b04d2185f8180dfa37ee8077bec26555
BLAKE2b-256 8c3459f4a5483731da752a3c09f78716a8bc36bbfd225d92be52f4f82dee33e5

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