Interface ILoggingHealthEventHandler
- All Superinterfaces:
IHealthEventHandler
- All Known Implementing Classes:
LoggingActivePivotHealthEventHandler,LoggingClusterHealthEventHandler,LoggingComposerHealthEventHandler,LoggingCsvHealthEventHandler,LoggingDatastoreHealthEventHandler,LoggingJdbcHealthEventHandler,LoggingMdxEventHandler,MonitoredLoggingActivePivotHealthEventHandler,MonitoredLoggingClusterHealthEventHandler,MonitoredLoggingComposerHealthEventHandler,MonitoredLoggingCsvHealthEventHandler,MonitoredLoggingDatastoreHealthEventHandler
This interface decorates
IHealthEventHandler and provides it additional methods to log
the events.- Author:
- ActiveViam
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringBuilderRetrieves the log message that makes sense for all health events, regardless of their types.default LevelgetLogLevel(IHealthEvent event) Retrieves the log level to use to log the given event.Methods inherited from interface com.activeviam.tech.observability.api.health.IHealthEventHandler
getTagAcceptor, onUnknownEvent
-
Field Details
-
LOGGER
The logger to use to log the events.
-
-
Method Details
-
getLogLevel
Retrieves the log level to use to log the given event.This makes sure that all events this handler are interested are logged, regardless of the level of the actual logger.
- Parameters:
event- The event to log.- Returns:
- The level at which to log the event.
-
getGenericLog
Retrieves the log message that makes sense for all health events, regardless of their types.- Parameters:
e- The health event being logged.- Returns:
- The log message that makes sense for all health events, regardless of their types.
-