Class AutoCloseableKibanaLogField
java.lang.Object
org.hawaiiframework.logging.model.AutoCloseableKibanaLogField
- All Implemented Interfaces:
AutoCloseable,KibanaLogField
A wrapper around a KibanaLogField where the field is closeable.
Closing the field will remove the field (and it's value) from the KibanaLogFields, so further logging will not be marked with the field.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Get the name with which this field will appear in the log.booleanCheck if a key matches.
-
Constructor Details
-
AutoCloseableKibanaLogField
The constructor.- Parameters:
delegate- The delegate log field to close.
-
-
Method Details
-
getLogName
Description copied from interface:KibanaLogFieldGet the name with which this field will appear in the log.- Specified by:
getLogNamein interfaceKibanaLogField- Returns:
- the log name of the field
-
matches
Description copied from interface:KibanaLogFieldCheck if a key matches.- Specified by:
matchesin interfaceKibanaLogField- Parameters:
key- the key to match- Returns:
- true if not null and if the supplied key equals this key.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-