Package overit.geocall.util.log
Class LogMessage
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Class that extends
HashMap used to map the message of the logs- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectWritergetText()Returns the text of the messagetoString()Adds to the LogMessage the key:"name" and the value:"value"Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode
-
Constructor Details
-
LogMessage
Creates an instance of LogMessage- Parameters:
text- String containing the message of the log
-
-
Method Details
-
getText
Returns the text of the message- Returns:
- The text of the message
-
with
Adds to the LogMessage the key:"name" and the value:"value"- Parameters:
name- The name of the key of the mapvalue- The value to add- Returns:
- The LogMessage with name:value
-
getJsonWriter
- Returns:
- a object writer to transform objects in json format
-
toString
- Overrides:
toStringin classAbstractMap<String,Object>
-