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

Uploaded Source

Built Distribution

pylogz-0.0.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylogz-0.0.2.tar.gz
  • Upload date:
  • Size: 2.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.2.tar.gz
Algorithm Hash digest
SHA256 0005aba312e45826207808432f4a55c8e229f7cab2078d0e143374e0d0437428
MD5 6c1bf0ce12897cb47d6f798349b332fa
BLAKE2b-256 37d306a4a23825c8bacad898ddc9d9862e0fbc55f15735a0861771aebeef6908

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylogz-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5f79abe5f61320c47210ad02b97b11467192d4450b9c57852bf085a0c26f057
MD5 ac02fea3525f5480a1a33ee839bb534a
BLAKE2b-256 5fd324e38f98af043fa88d9d8b468836ea9826b91f075a30a695589e3e6ef177

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