Skip to main content

Simple, Colored, File and Line number printable logger

Project description

devfacPyLog

Simple, Colored, File and Line number printable python logger

I wanted to log like this

  1. colored
  2. file name
  3. line number
  4. time
  5. print type of logs by different func name
[2021-11-09 22:53:41.227][INF][test_logger.py:39] info log
[2021-11-09 22:53:41.229][DBG][test_logger.py:40] debug log
[2021-11-09 22:53:41.230][ERR][test_logger.py:41] error log
[2021-11-09 22:53:41.231][WRN][test_logger.py:42] warning log
[2021-11-09 22:53:41.233][CRC][test_logger.py:43] critical log

sample_output

How to use

from devfacPyLogger import log

log.info('info log')
log.debug('debug log')
log.error('error log')
log.warning('warning log')
log.critical('critical log')

features

  • At jupyter notebook there will be NO filename and line number(0.1)
    [2021-11-09 23:01:34.591][WRN] warning log
    

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

devfacPyLogger-0.2.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

devfacPyLogger-0.2.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file devfacPyLogger-0.2.1.tar.gz.

File metadata

  • Download URL: devfacPyLogger-0.2.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.6

File hashes

Hashes for devfacPyLogger-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a7760d7a2e566093eaaf366943dc6ac49062ddfeefab625ee5e96ac65c8f4542
MD5 003c019c37d1fd0199620c5171e37f37
BLAKE2b-256 8a73e02b62c767a808ffeced120e5f66ab4ff5dcc86576eef8783cae924f8ae9

See more details on using hashes here.

File details

Details for the file devfacPyLogger-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: devfacPyLogger-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.6

File hashes

Hashes for devfacPyLogger-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54d4e3781e2c34f72668def49be473f319e84b3133a6ef136680676564d54cf5
MD5 6cf6241e2e37b85839a73e28c5a676f0
BLAKE2b-256 bb8cd640782b529754ed94d629acb4a962ac120aa04411416b2b7cc96c76e2d8

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