Releases: Lazarus-org/django_logging
v2.0.1
β¨ Features
-
feat(settings): Add
SettingsManager
class to manage Django logging configurations. (3c9e9a5)- Introduced a
SettingsManager
class to handle and organize all logging configurations. - Improved
get_config
method to fetch logging settings fromSettingsManager
for better readability and performance.
- Introduced a
-
feat(commands): Update commands to fetch
log_dir
fromSettingsManager
. (4c4e9f5)- Refactored commands to dynamically fetch the
log_dir
from the newSettingsManager
.
- Refactored commands to dynamically fetch the
π¨ Enhancements
- update(console): Enhance colors in the console colorizer and add new placeholders. (d208ebc)
- Updated the colorizer utility to support additional colors and placeholders for improved console output formatting.
π Bug Fixes
- fix(logging): Fixed minor issues related to logging configurations being fetched incorrectly.
π Merged
- Merge PR #126: Update console colors and add new placeholders. (2961228)
- Merge PR #125: Add
SettingsManager
and refactor commands. (a630d4c)
β‘ Miscellaneous
- Update(codebase): General updates and cleanup across the project. (43ef34d)
v2.0.0
β¨ Features
-
feat(LogiBoard): Add drag-and-drop support for ZIP file uploads. (e86dd14)
- Added drag-and-drop functionality for file uploads in the #drop-zone area.
- Implemented ZIP file validation with interactive UI.
-
feat(formatters): Add JSON, XML, and FLAT formatters. (509e67e, 1cb6639, bf017c1)
- JSONFormatter: Converts log records into structured JSON format.
- XMLFormatter: Provides XML formatted log records with nested data.
- FLATFormatter: Formats log fields as flat key-value pairs.
-
feat(contextvar): Add ContextVarManager class for structured context management. (bae37d0)
- Introduced methods for binding, unbinding, and managing context variables for structured logging.
-
feat(middleware): Add MonitorLogSizeMiddleware and RequestLogMiddleware. (4044a39, 2c004df)
- MonitorLogSizeMiddleware: Periodically checks log directory size and sends alerts if limits are exceeded.
- RequestLogMiddleware: Logs details about each HTTP request, including SQL queries executed during the request.
-
feat(commands): Add Django management commands for monitoring logs. (980f28d, d38d3e4)
- MonitorLogSizeCommand: Checks log directory size and sends admin email alerts.
- Pretty JSON/XML Commands: Reformat log files into prettier formats for better readability.
-
feat(Static): Add JavaScript functionality for handling ZIP uploads in LogiBoard. (3c1bcf9)
- Enhanced log management through a user-friendly drag-and-drop UI.
π Bug Fixes
-
fix(validators): Add validation for log file formats and extra log files configuration. (47ebea4)
- Ensured correct configuration of log file formats and extra log settings.
-
fix(checks): Correct import typos in middleware and formatters. (3732fc7)
β‘οΈ Refactor
- refactor(middleware): Refactor RequestLogMiddleware for asynchronous support and SQL query logging. (2c004df)
β Tests
-
tests(contextvar): Add tests for ContextVariableManager. (8cb8b43)
- Verified correct binding, unbinding, and merging of context variables.
-
tests(middleware): Add comprehensive tests for middleware and formatters. (4754cd9)
π Documentation
- docs: Update README and RST documentation to cover new features. (17880ad, 01d3fe2)
- Included new features such as context management, formatters, and middleware in the docs.
π Merged
v1.2.1
π Bug Fixes
- fix(handlers): Use
localtime()
to respectTIME_ZONE
setting. (80322cf)- Replaced
timezone.now()
withtimezone.localtime()
inEmailHandler
to ensure the correct local time is used for log emails, matching the configuredTIME_ZONE
setting.
- Replaced
π Documentation
- docs(handlers): Add detailed docstrings to
EmailHandler
class and methods. (4dc7db1)- Added comprehensive docstrings to the
EmailHandler
class and its methods (emit
andrender_template
) to improve code documentation and readability.
- Added comprehensive docstrings to the
β Tests
- tests(settings): Update test settings to include
TIME_ZONE
configuration. (94bc68a)- Updated test settings to include
TIME_ZONE
related configurations to ensure the correct behavior whentimezone.localtime()
is used inEmailHandler
.
- Updated test settings to include
β‘οΈ Miscellaneous
- Update(SECURITY): Fix typo in Markdown file. (23a9260)
- Minor typo correction in the security documentation.
π Merged
v1.2.0
β¨ Features
- refactor(templates): Update email template with new design and improved styles. (a0902b7)
- Refactored the email template for log notifications to introduce a new design.
- Updated styles with a darker background and a lighter content area.
- Added branding with logo (LAZARUS), improved structure and readability, and modernized the look with rounded corners and shadows.
β‘ Refactor
- refactor(handlers): Update template context data to include formatted date and time. (55f1ded)
- Added formatted date (
%d %B %Y
) and time (%I:%M %p
) to email context. - Ensured backward compatibility with existing log entries.
- Added formatted date (
β Tests
- tests(email_handler): Update tests to return context in
test_email_handler
. (6e3e8cf)- Modified test cases for email handling to return the context for verification.
π Documentation
- docs: Update LICENSE file. (d3c00dd)
π Merged
v1.1.0
π§ Chore
- chore(pyproject): Added new markers to pytest configurations. (3a1448c)
- Updated pytest configuration with new markers for improved testing control.
π Documentation
-
docs(Usage): Add documentation for
execution_tracker
decorator. (2713377)- Added detailed usage instructions for the new
execution_tracker
decorator. - Provided examples and log output descriptions for different configurations.
- Added detailed usage instructions for the new
-
README: Update documentation for
execution_tracker
. (9272093)- Expanded README with detailed explanations of the
execution_tracker
decorator, including argument descriptions and usage examples.
- Expanded README with detailed explanations of the
β¨ Features
-
feat(decorators): Add
execution_tracker
for performance metrics. (3650c32)- Added a decorator that logs execution time, database queries, and query thresholds for performance monitoring.
- Includes error handling and warnings when query thresholds are exceeded.
-
feat(validators): Add
integer_setting
validator inconfig_validators
. (890b2c1)- Introduced a validator to ensure positive integer settings, improving configuration validation in
execution_tracker
.
- Introduced a validator to ensure positive integer settings, improving configuration validation in
β Tests
- tests(decorators): Add tests for
execution_tracker
decorator. (d6d3d8b)- Comprehensive test coverage for the
execution_tracker
decorator, including performance, query logging, and error handling scenarios.
- Comprehensive test coverage for the
β‘ Refactor
- docs: Improve RST docs readability and highlights. (6b6c12a)
- Enhanced readability and formatting in reStructuredText documentation files for better user guidance.
π Merged
v1.0.4
π CI
- ci: Added automated build and release process. (1a3bb2b)
- Added a GitHub Actions workflow for automated build and release.
- Workflow triggers on new tags matching the
v*.*.*
pattern. - Includes steps to set up Python, install dependencies, and build the package using Poetry.
- Automatically publishes the built package to PyPI using stored PyPI token secrets.
- Ensures the release job only runs after the 'test' job passes successfully.
β‘οΈπ¨π Refactor
-
docs: Updated badges in README MarkDown file. (c82f452)
- Added pylint badge to display code quality rating in
README.md
. - Updated pre-commit badge color.
- Added pylint badge to display code quality rating in
-
docs: Updated badges and references in RST docs. (c82f452)
- Added pylint badge to the documentation.
- Updated the settings section in various
.rst
files to reflect recent changes. - Enhanced documentation for better readability and accuracy.
v1.0.3
β¨ Added
- chore(pyproject): Added
python-semantic-release
configuration to automate versioning and releases. (945c648
) - docs: Added pre-commit badge to display status in documentation. (
f40a9e5
,7fca7b7
)
π οΈ Changed
- docs: Updated badge URLs and paths in documentation for correct references. (
f40a9e5
,7fca7b7
)
π Fixed
- pyproject: Updated dependencies and development requirements in the
pyproject.toml
configuration. (945c648
)
π Merged
- Merge PR #77: Merged the
chore/pyproject-config
branch into the main branch. (c2ebad3
)
v1.0.2
Description
Added
- tag_format in commitizen configuration in pyproject.toml
- changelog path in poetry urls
- Add FUNDING.yml file
Refactored
- Renamed setup_django into settings_configuration in tests dir
- Moved settings_configuration from fixtures into tests root dir
v1.0.1
:bookmark: build(django_logging): Publish version 1.0.1
v1.0.0
π π π π
Start Release