Releases: ddc/pythonLogs
Release v7.0.0
Breaking Changes
Package Import Renamed to Lowercase (PEP 8)
The package directory has been renamed from pythonLogs to pythonlogs to follow PEP 8 naming conventions.
Before (v6.x):
from pythonLogs import BasicLog, SizeRotatingLog, TimedRotatingLog
from pythonLogs.core.factory import LoggerFactoryAfter (v7.x):
from pythonlogs import BasicLog, SizeRotatingLog, TimedRotatingLog
from pythonlogs.core.factory import LoggerFactoryAll class names (BasicLog, SizeRotatingLog, TimedRotatingLog, LogLevel, RotateWhen, etc.) remain unchanged — only the package import name is lowercase.
Migration
Update all imports in your code:
# Find and replace
pythonLogs → pythonlogs
The pip install command is unchanged (PyPI is case-insensitive):
pip install pythonlogsDropped Python 3.11 Support
Minimum Python version is now 3.12. Python 3.11 is no longer supported.
Release v6.0.3
Automated release for version v6.0.3
Release v6.0.2
Automated release for version v6.0.2
Release v6.0.1
Automated release for version v6.0.1
Release v6.0.0
⚠️ Breaking Changes v6.0.0
The API has been simplified. You now import classes directly instead of using factory functions:
Before (v5.x):
from pythonLogs import get_basic_log, get_size_rotating_log, get_timed_rotating_log
logger = get_timed_rotating_log(name="myapp", directory="/logs")After (v6.0.0):
from pythonLogs import BasicLog, SizeRotatingLog, TimedRotatingLog
logger = TimedRotatingLog(name="myapp", directory="/logs")Migration Guide
┌──────────────────────────┬─────────────────────┐
│ Old Import (v5.x) │ New Import (v6.0.0) │
├──────────────────────────┼─────────────────────┤
│ get_basic_log() │ BasicLog() │
├──────────────────────────┼─────────────────────┤
│ get_size_rotating_log() │ SizeRotatingLog() │
├──────────────────────────┼─────────────────────┤
│ get_timed_rotating_log() │ TimedRotatingLog() │
└──────────────────────────┴─────────────────────┘New Features
- Context manager support for automatic cleanup:
with TimedRotatingLog(name="myapp", directory="/logs") as logger:
logger.info("This logger auto-cleans on exit")Release v5.0.3
Automated release for version v5.0.3
Release v5.0.2
Automated release for version v5.0.2
Release v5.0.1
Automated release for version v5.0.1
Release v5.0.0
Automated release for version v5.0.0
Release v4.0.6
Automated release for version v4.0.6