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

Way 1. To install the module, simply copy the logging.py file to your project directory. Way 2. You can also install the module using pip:

pip install emoji_logger

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")

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.8.tar.gz (3.8 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.8-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: emoji_logger-0.1.8.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0

File hashes

Hashes for emoji_logger-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c6a11afa6b310e32b7f2f83df14d07c8f7e8eae8540a0f5a4a5d58ab7d9f1d11
MD5 e60fd43b18f237c9ea237005946a4ee1
BLAKE2b-256 e408deff72760ba3d9800e8ad565b9349fe37fc5014de8fd463e71d67ae86905

See more details on using hashes here.

File details

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

File metadata

  • Download URL: emoji_logger-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0

File hashes

Hashes for emoji_logger-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d8912bd8fbd4476c6e9f8d1e9cc8d95fd54576e167336f62549ed6b88b24be65
MD5 ed3c285d18d33be1f8ccb0e8ee943516
BLAKE2b-256 3117dbcdfea8447eea9e1740345ad9dbfbd079b4f88949a08f7c853c586da436

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