Skip to main content

Python Custom Logging Module

This is a custom logging module for Python. It is a simple module that allows you to log messages to a file and/or the console. It also allows you to set the log level so that you can control which messages get logged.

Installation

  1. Automatically install the module using pip:
pip install emoji_logger
  1. Manually install the module: Way 1. To install the module, simply copy the logging.py file to your project directory.

Usage

Here is an example of how to use the module:

from emoji_logger import Logger # < This is a logger class what you can use to create a logger object
from emoji_logger import logger # < This is a logger object what you can use directly (level: INFO)

logger.debug("This is a debug message")
logger.info("This is an info message")
logger.warning("This is a warning message")
logger.error("This is an error message")
logger.critical("This is a critical message")

Example

==================================================
2025-01-24 22:31:52 | DEBUG | TEST
main.py | debug | 193
--------------------------------------------------
🛠️ | main | test debug
==================================================
==================================================
2025-01-24 22:31:59 | INFO | TEST
main.py | info | 197
--------------------------------------------------
📚 | main | test info
==================================================
==================================================
2025-01-24 22:31:59 | WARNING | TEST
main.py | warning | 201
--------------------------------------------------
🔥 | main | test warning
==================================================
==================================================
2025-01-24 22:31:59 | ERROR | TEST
main.py | error | 205
--------------------------------------------------
⛔️ | main | test error
==================================================
==================================================
2025-01-24 22:31:59 | DEBUG | TEST
main.py | debug | 193
--------------------------------------------------
🛠️ | main | test debug
==================================================

Metadata

Release files for emoji_logger 0.1.17

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

Source distribution (sdist)

Source distribution for emoji_logger 0.1.17
File Size Uploaded Provenance
emoji_logger-0.1.17.tar.gz 23.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 28.2 kB

Release files / emoji_logger-0.1.17.tar.gz

Download URL emoji_logger-0.1.17.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
df8cf181e1bcb66cb45583506fe3e8a8413d67c849523cb6953112ec264457fa
BLAKE2b-256 checksum
How to use checksums
e8e46cd7c5544c2c41d390410becf8be2b1af914011dee1c921d8d0d27cffd08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.6

Release files / emoji_logger-0.1.17-py3-none-any.whl

Download URL emoji_logger-0.1.17-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7dd4f74a15101bb3a1e613fd5c2c5427bfd376ce2026c7d164f346033c769e5c
BLAKE2b-256 checksum
How to use checksums
3d3e2d2d4c21cda39df8f61572e3e26004893a5727d48b5c7d060c57026a58ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.6

Security for emoji_logger 0.1.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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