Pandalog is a simple, easy-to-use logging library for Python. It provides a straightforward way to log messages, exceptions, and more with various levels of severity.
You can install Pandalog from PyPI:
pip install pandalog
Here's a basic example of how to use Pandalog:
from pandalog import logger
logger.logInfo("This is a message", "TEST")
logger.logWarning("This is a warning", "TEST")
logger.logError("This is an error", "TEST")
logger.logCritical("This is a critical error", "TEST")
logger.logFatal("This is a fatal error", "TEST")
Output:
- Log messages with different levels of severity (INFO, WARNING, ERROR, etc.)
- Log exceptions with their stack traces
- Configurable log format
- Save logs to a file
Contributions are welcome! Please feel free to submit a Pull Request.
Pandalog is licensed under the MIT License. See the LICENSE
file for more details.