forked from hazelcast/hazelcast
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve logging factories creation and sharing
This change brings following: 1. Eliminates the chance of creating `hazelcast.logging.class` factory twice by doing the creation under the lock. 2. Improves the sharing of the static logger factory instance with `LoggingService`s. If the type of the the static logger factory matches with the type requested during the logging service construction, the service will receive the shared logger factory instance. 3. Fixes the issue with the shared factory get set while invoking `getLogger` when there is no `hazelcast.logging.type` setting provided. 4. Adds test cases to verify the expected behavior. Fixes: hazelcast#5641
- Loading branch information
Showing
3 changed files
with
408 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.