(Questions With 100% Correct Answers) A+ Graded
Verified
Logging Components - ANSWER Logger: logical file name that represents logging category
Appender: Destination for the logger
Layout: defines the log entry formatting instructions
Logging levels - ANSWER Trace: for method entry and exit
Debug: detailed info events for debugging
Info: less detailed events, used for logging results of important event
Warn: potential problem that does not affect user experience
Error: definite problem, affects user experience
Typical Events to Log - ANSWER Success, failure, recovery, identification
Common Logging Format (CLF) - ANSWER Standard format for logging messages in JSON,
works with Log4j2 and structured logger
CLF Core Fields - ANSWER Timestamp, Level, contextMap, Message, exceptionMessage
(only for error)
CLF Context Map - ANSWER array of key-value pairs which give context on the situation
Structured Logger - ANSWER simplified interface that facilitates logging, can define logger
objects (_logger=StructuredLogger.<LOGGER_CATEGORY>)
Access Modifer Keywords - ANSWER Public, Protected, Internal, Private
Enhancements - ANSWER Allow you to augment classes with additional concrete methods
and properties
Enhancement Use Cases - ANSWER Add new properties and methods to Guidewire
Entities, add utility methods to a Java class that can not be directly modified
Enhancement Properties - ANSWER Getter: Calculates derived value based on DB data,
result not stored in DB
Setter: Value may be stored in DB
Method
Validation Rules - ANSWER Written as Gosu rules, contain logic to validate complex logical
conditions