Class TimeSeriesLogger
-
- All Implemented Interfaces:
public class TimeSeriesLoggerGeorge Politis
-
-
Method Summary
Modifier and Type Method Description static TimeSeriesLoggergetTimeSeriesLogger(Class<out Object> clazz)Create a logger for the specified class. booleanisTraceEnabled()Check if a message with a TRACE level would actually be logged by this logger. booleanisWarnEnabled()Check if a message with a WARNING level would actually be logged by this logger. booleanisInfoEnabled()Check if a message with a INFO level would actually be logged by this logger. voidtrace(Map<String, Object> point)Traces a DiagnosticContext.TimeSeriesPoint. voidtrace(Supplier<Map<String, Object>> supplier)Traces a DiagnosticContext.TimeSeriesPoint supplied by the supplier if tracing is enabled by this logger voidwarn(Map<String, Object> point)Logs a DiagnosticContext.TimeSeriesPoint in WARNING level. voidwarn(Supplier<Map<String, Object>> supplier)Logs a DiagnosticContext.TimeSeriesPoint supplied by the supplier in WARNING level if warnings are enabled by this logger voidinfo(Map<String, Object> point)Logs a DiagnosticContext.TimeSeriesPoint in INFO level. voidinfo(Supplier<Map<String, Object>> supplier)Logs a DiagnosticContext.TimeSeriesPoint supplied by the supplier in INFO level if info is enabled by this logger -
-
Method Detail
-
getTimeSeriesLogger
static TimeSeriesLogger getTimeSeriesLogger(Class<out Object> clazz)
Create a logger for the specified class.
- Parameters:
clazz- The class for which to create a logger.- Returns:
a suitable Logger
-
isTraceEnabled
boolean isTraceEnabled()
Check if a message with a TRACE level would actually be logged by this logger.
- Returns:
true if the TRACE level is currently being logged, otherwise false.
-
isWarnEnabled
boolean isWarnEnabled()
Check if a message with a WARNING level would actually be logged by this logger.
- Returns:
true if the WARNING level is currently being logged, otherwise false.
-
isInfoEnabled
boolean isInfoEnabled()
Check if a message with a INFO level would actually be logged by this logger.
- Returns:
true if the INFO level is currently being logged, otherwise false.
-
trace
void trace(Map<String, Object> point)
Traces a DiagnosticContext.TimeSeriesPoint.
- Parameters:
point- the point to trace.
-
trace
void trace(Supplier<Map<String, Object>> supplier)
Traces a DiagnosticContext.TimeSeriesPoint supplied by the supplier if tracing is enabled by this logger
-
warn
void warn(Map<String, Object> point)
Logs a DiagnosticContext.TimeSeriesPoint in WARNING level.
- Parameters:
point- the point to log.
-
warn
void warn(Supplier<Map<String, Object>> supplier)
Logs a DiagnosticContext.TimeSeriesPoint supplied by the supplier in WARNING level if warnings are enabled by this logger
-
info
void info(Map<String, Object> point)
Logs a DiagnosticContext.TimeSeriesPoint in INFO level.
- Parameters:
point- the point to log.
-
-
-
-