Correct Answers) A+ Graded Verified 2026\2027
Logging
- correct answer Process of recording application actions and state to a secondary interface
used for:
Application maintenance and troubleshooting
Creating statistics relating to application usage
Auditing by capturing significant events
Typical events to log
- correct answer Success / Failure - a transaction or action has succeeded or failed
Recovery - a system went down or connection failed, retried, and recovered
Identification - any large functional areas such as integration, rating, reinsurance, and rules
Logger
- correct answer logical file name and encapsulates logging category
Has category and level, sends content to Appender
Group log messages so they have consistent structure and format
Defined in logging configuration file or created directly in Gosu class
, inherit properties from parent logger but can overwrite them
Appender
- correct answer is an output point (destination) for a logger such as app console or specific logging file
Layout
- correct answer defines the log entry formatting instructions
- Each appender can have its own layout format
Logging components defined in logging config file under
- correct answer configuration --> config --> logging
Log4j2.xml
- correct answer Root logger is parent of all loggers
Has logging level enabled as info.
Logger inherits properties from its parent, root logger
If additivity is set to false, writes only yo RuleExecutionLog file.
If set to true, also propagate to DailyFileLog and console
Logging Level
- correct answer indicates events with different implications
Logging level - TRACE
- correct answer Description: Fine-grained informational events
When to use: Log method entry and exit