python-simple-logger
A simple logger for python
What it is and what it does
python-simple-logger wraps Python's standard logging to provide a simpler interface for console and file logging with convenience features like duplicate filtering, sensitive data masking, and colored output. It exposes a get_logger() factory function that returns a logger configured for your use case, with optional parameters to control output level, filename, and behavior like automatic masking of passwords, tokens, and API keys.
The package depends on colorlog for terminal coloring and requires Python >=3.9. It is actively maintained with a recent release, but has minimal community engagement, suggesting it may be a specialized tool rather than a widely-used standard. The high install friction (source-only distribution) means installation requires compilation or a working build environment.
Use it for:
- Add colored, deduplicated logging to CLI tools or scripts without boilerplate configuration.
- Automatically redact passwords, tokens, and API keys from logs to prevent accidental credential exposure.
- Force colored output in containerized or CI/CD environments where TTY detection fails.
- Log to both console and file simultaneously with a single logger instance.
- Quickly prototype logging in small Python projects without learning the logging module deeply.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a simple logger for console and file output with built-in support for filtering duplicate logs, masking sensitive data, and colored output.
Yes, with conditions. The package solves real problems (duplicate filtering, credential masking, colored output) and is actively maintained with no known vulnerabilities. However, high install friction and minimal adoption suggest it is best suited for small projects or teams already familiar with it. For production systems or teams standardizing on logging, consider whether the convenience features justify the dependency.
Install
python-simple-logger on PyPI
pip
pip install python-simple-loggeruv
uv add python-simple-loggerpoetry
poetry add python-simple-loggerInstalling python-simple-logger
Before you install
High install friction due to a single source distribution format. Maintenance is active with a recent release dated 2026-02-26, though the package has minimal adoption and zero repository stars, suggesting limited community validation.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install python-simple-logger
from simple_logger.logger import get_logger
import logging
logger = get_logger(name=__name__, level=logging.DEBUG, filename="my-log.log")
logger.info("This is INFO log")
Requires Python >=3.9; depends on colorlog for colored output support.
Verify before relying
- Whether the 'success' log level is a standard logging extension or custom implementation.
- Performance characteristics when masking sensitive data in high-volume logging scenarios.
- Compatibility with structured logging frameworks or JSON output formats.
- Actual adoption and real-world usage patterns beyond download statistics.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | high — source build required |
| Runtime dependencies | 1 — colorlog |
| Maintenance | actively maintained — 169 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 77,940/month — #14,479 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_simple_logger-2.0.19.tar.gz
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
pyhelper-utilsProvides a collection of utility functions for…
permissive · top 15,000 on PyPI
minilogMinilog wraps Python's standard logging module…
permissive · top 15,000 on PyPI
colorlogAdds colored output to Python's standard…
permissive · top 1,000 on PyPI
logzerologzero provides pre-configured Python logging…
permissive · top 5,000 on PyPI
logdecoratorLogdecorator provides Python decorators to add…
permissive · top 15,000 on PyPI
flake8-loggingA Flake8 plugin that detects and flags common…
permissive · top 15,000 on PyPI
cloudwatchA Python logging handler that sends log events…
permissive · top 15,000 on PyPI
logmuseAdds standard CLI logging options…
permissive · top 15,000 on PyPI
logistrologistro wraps Python's standard logging module…
permissive · top 5,000 on PyPI
json-loggingConfigures Python's standard logging module to…
permissive · top 5,000 on PyPI