Class HqlLogger
- java.lang.Object
-
- org.hansken.plugin.extraction.test.util.HqlLogger
-
public final class HqlLogger extends Object
This utility class contains some functions to format HQL based logging.
-
-
Field Summary
Fields Modifier and Type Field Description static StringHQL_MATCH_MESSAGEstatic StringHQL_NO_MATCH_MESSAGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlogTrace(org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace trace, String dataType, String hqlMatcher, String messagePrefix, boolean verboseLoggingEnabled)This method formats the inputtraceaccording to theHQL_MESSAGE, and logs it to the provided logger.
-
-
-
Field Detail
-
HQL_MATCH_MESSAGE
public static final String HQL_MATCH_MESSAGE
- See Also:
- Constant Field Values
-
HQL_NO_MATCH_MESSAGE
public static final String HQL_NO_MATCH_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
logTrace
public static void logTrace(org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace trace, String dataType, String hqlMatcher, String messagePrefix, boolean verboseLoggingEnabled)This method formats the inputtraceaccording to theHQL_MESSAGE, and logs it to the provided logger.- Parameters:
trace- the input trace, same asHqlMatcher.match(org.hansken.plugin.extraction.api.ImmutableTrace, java.lang.String)dataType- data type of the stream, same asHqlMatcher.match(org.hansken.plugin.extraction.api.ImmutableTrace, java.lang.String)hqlMatcher- hql matcher query stringmessagePrefix- a string that is pre-appended to the output messageverboseLoggingEnabled- enable verbose logging for HQL queriesExample message:
messagePrefix $dataType=raw With trace: dataType=raw types={text} properties={size=0, name=root, id=0}
-
-