Skip to main content

A colorful logger for Python's applications.

Project description

Colorful logger for application

I. Installation

  • You can easily install it from pypi:
pip install hien_logger
  • Or you can also install it from source:
git clone https://github.com/hienhayho/hien_logger.git

pip install -v .

Optional:

  • You can set datetime to your timezone:
from hien_logger import setup_timezone

setup_timezone("Asia/Ho_Chi_Minh")
  • To make sure hien_logger was sucessfully installed, run this:
pip install pytest

pytest

II. Usage

  • You can use it as a console logger:
from hien_logger import get_formatted_logger

logger = get_formatted_logger(name="hien_logger")

logger.info("Hello World")
  • Or you can log it to a file:
from hien_logger import get_formatted_logger

logger = get_formatted_logger(
    name="hien_logger",
    file_path="test.log"
)

logger.info("Hello World")

III. LICENSE

hien_logger in under MIT LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

hien_logger-0.0.2.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file hien_logger-0.0.2.3-py3-none-any.whl.

File metadata

  • Download URL: hien_logger-0.0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for hien_logger-0.0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 01b45ed8f2b31e0037f8b518039d5fb63ba6ce57b7216abd1c49bd257ab96a01
MD5 b4f36fed15f7aa33297f32f06b770285
BLAKE2b-256 d63aec0cccc1eb3cd10dd0bff4e446c0fea46edf022b3854ca8cf511588a481e

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