This pull request introduces several enhancements and bug fixes for the Akka.Logger.log4net module. The key changes include:
Addition of Context Properties: New methods in the Log4NetLoggingAdapter class allow for capturing and logging context properties such as source file name, line number, method name, and its declaring class. Additionally, user-defined custom context properties can be added and logged as well. This enriches the log entries with detailed context information, making it easier to trace and debug issues.
New Unit Tests: Comprehensive unit tests have been added to verify the functionality of the new context properties methods. These tests ensure that the context properties are correctly captured and included in the log entries.
Documentation Updates: The documentation has been updated to demonstrate how to use the new logging capabilities. Examples are provided to show how to log messages with custom properties and how to configure log4net to include these properties in the logs.
Release Notes: Fixed a typo in RELEASE_NOTES.md to correct the release year from 2025 to 2024.
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):
Fixes #23
Changes
This pull request introduces several enhancements and bug fixes for the
Akka.Logger.log4net
module. The key changes include:Addition of Context Properties: New methods in the Log4NetLoggingAdapter class allow for capturing and logging context properties such as source file name, line number, method name, and its declaring class. Additionally, user-defined custom context properties can be added and logged as well. This enriches the log entries with detailed context information, making it easier to trace and debug issues.
New Unit Tests: Comprehensive unit tests have been added to verify the functionality of the new context properties methods. These tests ensure that the context properties are correctly captured and included in the log entries.
Documentation Updates: The documentation has been updated to demonstrate how to use the new logging capabilities. Examples are provided to show how to log messages with custom properties and how to configure log4net to include these properties in the logs.
Release Notes: Fixed a typo in
RELEASE_NOTES.md
to correct the release year from 2025 to 2024.Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):
Latest
dev
Benchmarksn/a
This PR's Benchmarks
n/a