Skip to main content

Just another logger

Project description

pylogz

Super basic logger used in personal projects.


Why should you use this? You probably shouldn't.


Quickstart

pip install --upgrade pylogz

Usage

from logz import get_logger 

logger = get_logger(name='libname', log_level='info', *args, **kwargs)
logger.info('...')

### Multi lib usage, threadsafe-ish

from logz import get_cls_logger
get_logger = get_cls_logger(name='libname_1', log_level='info', *args, **kwargs)
get_logger2 = get_cls_logger(name='libname_2', log_level='info', *args, **kwargs)

# Now you can call the get_logger function from any submodule.
logger = get_logger()
logger.info('hi')
"""
2021-12-03 03:36:26Z [libname_1] <stdin>.<module>             hi
"""

logger2 = get_logger2()
logger2.info('hi')
"""
2021-12-03 03:36:26Z [libname_2] <stdin>.<module>             hi
"""

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

pylogz-0.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

pylogz-0.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pylogz-0.0.3.tar.gz.

File metadata

  • Download URL: pylogz-0.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for pylogz-0.0.3.tar.gz
Algorithm Hash digest
SHA256 59b62efeed2712bb5dda6805c764f9397ba07321fe491960bf8ba3050ffe59bf
MD5 154c83832ca2755a67fb5a763b4edd70
BLAKE2b-256 cf0c171332b3ca4ccc02340a503ae01cbdfb8727b15a555b4c4c3e76a0c1f522

See more details on using hashes here.

File details

Details for the file pylogz-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pylogz-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for pylogz-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c5261b0aa3e0de49a3cd3715cf035a1ed590d2dd6389a325005381a017dbba26
MD5 d84b04206e7d182ef5a410ef11e716db
BLAKE2b-256 71772049d9f868de0defd8da9b751d8df687a1adcc06a94e956d14e9a7292f42

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