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
- Automatically install the module using pip:
pip install emoji_logger
- Manually install the module:
Way 1. To install the module, simply copy the
logging.pyfile 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")
- Pypi: emoji_logger
- GitHub: Jin-Doh/python-logging
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| emoji_logger-0.1.17.tar.gz | 23.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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.