Skip to main content

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
    

Metadata

Release files for devfacPyLogger 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devfacPyLogger 0.2.1
File Size Uploaded
devfacPyLogger-0.2.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for devfacPyLogger 0.2.1
File Interpreter ABI Platform
devfacPyLogger-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / devfacPyLogger-0.2.1.tar.gz

Download URL devfacPyLogger-0.2.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a7760d7a2e566093eaaf366943dc6ac49062ddfeefab625ee5e96ac65c8f4542
BLAKE2b-256 checksum
How to use checksums
8a73e02b62c767a808ffeced120e5f66ab4ff5dcc86576eef8783cae924f8ae9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / devfacPyLogger-0.2.1-py3-none-any.whl

Download URL devfacPyLogger-0.2.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54d4e3781e2c34f72668def49be473f319e84b3133a6ef136680676564d54cf5
BLAKE2b-256 checksum
How to use checksums
bb8cd640782b529754ed94d629acb4a962ac120aa04411416b2b7cc96c76e2d8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page