v0.1.9 — 2025-07-16
Added- New
FileManagerclass responsible for all file operations: opening, closing, writing, and reading. Improves cohesion and follows the SOLID single-responsibility principle. - Support for relative paths when specifying log files, correctly resolved using
pathlib.Path.
log_file_nameparameter inLoggeris now optional (defaults to'log.log').- Automatic detection of the calling script’s directory:
- Retrieves the caller’s directory using
inspect. - Constructs the log file path in that directory.
- Falls back to the default name
log.logif no name is provided.
- Retrieves the caller’s directory using
- Path resolution migrated from
os.pathtopathlib.Path.
If the file name does not include an explicit path, the log is created in the same directory from which the logger was instantiated.
v0.1.9rc2
- Updated README.
v0.1.9rc1
- Final release-candidate testing before stable release.
v0.1.9a2
- Fixed log file name error causing issues on some systems.
v0.1.9a1
- Refactored path handling from
ostopathlib. - Full support for relative paths.
- New log message formats:
log():log_e():
- Improvements to file opening and writing.
v0.1.8
- Improved error handling in
log_e(e: Exception). - Updated username in logs.
v0.1.7
- Minor bug fixes.
v0.1.6
- Dependency updates.
v0.1.5
- Fixed missing
tracebackimport.
v0.1.4
- Improved automatic dependency management using pip directly instead of
subprocess.
v0.1.3
- Automatic dependency installation; users no longer need to install dependencies manually.
v0.1.2
- Bug fixes related to PyPI publishing (twine).
v0.1.1
- Minor bug fixes.
v0.1.0
- Initial release.