Vladislav Pyatkov created IGNITE-24181:
------------------------------------------

             Summary: Improvements for ThrottledLogger
                 Key: IGNITE-24181
                 URL: https://issues.apache.org/jira/browse/IGNITE-24181
             Project: Ignite
          Issue Type: Improvement
            Reporter: Vladislav Pyatkov


h3. Motivation
The current API for the throttle logger is inconvenient. It is needed to pass 
an executor and another logger to create throttle logger.
I do not see a reason to create Coffein instance for each logger.
Proposed API:
{code:java}
Loggers.throttledLogger(Class<?> cls);
Loggers.throttledLogger(String name);
{code}

h3. Definition of done
The following issues have to be resolved:
* Use the only thread pool for all loggers.
* Additinal methods to create a ThrottledLogger were created.
* One Caffeine instance is enough for all loggers.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to