Skip to main content

Custom python logging module

Project description

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
==================================================

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

emoji_logger-0.1.15.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

emoji_logger-0.1.15-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file emoji_logger-0.1.15.tar.gz.

File metadata

  • Download URL: emoji_logger-0.1.15.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for emoji_logger-0.1.15.tar.gz
Algorithm Hash digest
SHA256 0aa85b138923d39cb5a8909b60f14549af84f3ec92224c416abd91b445d29bd4
MD5 0b98f0446f0142cc9369bb1f84c0ebee
BLAKE2b-256 0dc2de51b0062f513be7e46fb8a2413d6ca476e8ef177cd80abdda251d9bb2bd

See more details on using hashes here.

File details

Details for the file emoji_logger-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: emoji_logger-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for emoji_logger-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 f6f69abde6020f1126dce1e6dd7d36d57d80092f1122dfe0cebf02cfff05ff47
MD5 f7bf63caef86996fb584163e6cf4e453
BLAKE2b-256 95bae9b62bcfd939d7ee40a4395d7d239fea4b83eaeb4619a12b9ade628efd7f

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