Skip to main content

python-logger

A simple yet fancy logger for Python scripts

Install

  • Using pip:
pip install lgg
  • Using Poetry:
poetry add lgg

Usage

# This way
from lgg import logger
# Or
from lgg import get_logger
logger = get_logger()
# End Or

logger.info('This is an info message')

logger.debug('Debugging message')

logger.error('error message')

logger.warning('File not found! An empty one is created')

Result

from lgg import get_logger
logger = get_logger('python-logger')

logger.info('This is an info message')

logger.debug('Debugging message')

logger.error('error message')

logger.warning('File not found! An empty one is created')

Result

Notice the change after each log's datetime, the former shows the filename and line of code, the latter displays the logger name instead

Metadata

Release files for lgg 0.4.0

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

Source distribution (sdist)

Source distribution for lgg 0.4.0
File Size Uploaded
lgg-0.4.0.tar.gz 2.7 kB Details

Built distribution (wheel)

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

Total release size: 6.1 kB

Release files / lgg-0.4.0.tar.gz

Download URL lgg-0.4.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
48a6e6ec456da6abb4aa874fb570b74adefa34f6d5d77a26cf6056deb45646e2
BLAKE2b-256 checksum
How to use checksums
66d57987cc7bea2937ef596fc03607e6c0a06686ea854d418f28f429d5187df9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

Release files / lgg-0.4.0-py3-none-any.whl

Download URL lgg-0.4.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bb51063e7097d3f2a5103364a49718a94fdbbdbba96507468fad142533f0f9e
BLAKE2b-256 checksum
How to use checksums
516bf51cc2796078833a13ab85dd8ea77acb60b1cf710ed38139752e14378d84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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