Class GuiceStatsTracker
java.lang.Object
ru.vyarus.dropwizard.guice.module.context.stat.GuiceStatsTracker
Guice logs internal stats with java util logger (
ContinuousStopwatch).
In order to intercept these messages, append custom handler to this logger, but just for injector creation time.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCut off guice logger from parent handlers and add individual handler to intercept log messages.voidAfter injector creation reset logger back to parent handler.
-
Constructor Details
-
GuiceStatsTracker
public GuiceStatsTracker()
-
-
Method Details
-
injectLogsInterceptor
public void injectLogsInterceptor()Cut off guice logger from parent handlers and add individual handler to intercept log messages. -
resetStatsLogger
public void resetStatsLogger()After injector creation reset logger back to parent handler. -
getMessages
- Returns:
- guice injector creation stat messages with non zero time
-