Skip to content

Releases: Lazarus-org/django_logging

v2.0.1

17 Oct 08:25
Compare
Choose a tag to compare

✨ 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 from SettingsManager for better readability and performance.
  • feat(commands): Update commands to fetch log_dir from SettingsManager. (4c4e9f5)

    • Refactored commands to dynamically fetch the log_dir from the new SettingsManager.

🎨 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

13 Oct 19:26
Compare
Choose a tag to compare

✨ 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

  • Merge PR #122: Improve LogiBoard UI and styles. (0cb7f51)
  • Merge PR #101: Add FLATFormatter for key-value formatted logs. (aa38f42)

v1.2.1

19 Sep 16:45
Compare
Choose a tag to compare

πŸ› Bug Fixes

  • fix(handlers): Use localtime() to respect TIME_ZONE setting. (80322cf)
    • Replaced timezone.now() with timezone.localtime() in EmailHandler to ensure the correct local time is used for log emails, matching the configured TIME_ZONE setting.

πŸ“š Documentation

  • docs(handlers): Add detailed docstrings to EmailHandler class and methods. (4dc7db1)
    • Added comprehensive docstrings to the EmailHandler class and its methods (emit and render_template) to improve code documentation and readability.

βœ… 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 when timezone.localtime() is used in EmailHandler.

⚑️ Miscellaneous

  • Update(SECURITY): Fix typo in Markdown file. (23a9260)
    • Minor typo correction in the security documentation.

πŸ”€ Merged

  • Merge PR #89: Merged pull request fix/email-timestamp. (2cbeb3b)
    • Fixes an issue with incorrect timestamps in log emails by ensuring the timestamp respects the configured TIME_ZONE setting.

v1.2.0

18 Sep 14:12
Compare
Choose a tag to compare

✨ 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.

βœ… 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

  • Merge PR #87: Merged develop branch into main. (610ecbd)
  • Merge PR #86: Merged refactor/email-template branch into develop. (b170f99)

v1.1.0

12 Sep 01:03
Compare
Choose a tag to compare

πŸ”§ 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.
  • README: Update documentation for execution_tracker. (9272093)

    • Expanded README with detailed explanations of the execution_tracker decorator, including argument descriptions and usage examples.

✨ 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 in config_validators. (890b2c1)

    • Introduced a validator to ensure positive integer settings, improving configuration validation in execution_tracker.

βœ… 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.

⚑ Refactor

  • docs: Improve RST docs readability and highlights. (6b6c12a)
    • Enhanced readability and formatting in reStructuredText documentation files for better user guidance.

πŸ”€ Merged

  • Merge PR #83: Merged chore/pytest into main. (e3b3beb)
  • Merge PR #82: Merged update/docs into main. (8647a37)
  • Merge PR #81: Merged feat/execution-tracker into main. (76b5621)

v1.0.4

05 Sep 18:27
Compare
Choose a tag to compare

πŸš€ 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.
  • 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

04 Sep 21:47
Compare
Choose a tag to compare

✨ 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

02 Sep 19:41
Compare
Choose a tag to compare

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

02 Sep 17:56
Compare
Choose a tag to compare
:bookmark: build(django_logging): Publish version 1.0.1

v1.0.0

02 Sep 17:08
Compare
Choose a tag to compare

πŸŽ‰ πŸŽ‰ πŸŽ‰ πŸŽ‰
Start Release