Question 7
You are building a new MAF application and the design documentation specifies the following requirements about the application logs:
Log entries by the MAF framework must be kept at a minimum.
Log entries generated by your own business logic must be as detailed as possible for compliance purpose.
The logging.properties file for your application currently looks like this:
.handlers=com.sun.util.logging.ConsoleHandler
.formatter=com.sun.util.logging.SimpleFormatter
oracle.adfmf.util.logging.ConsoleHandler.level=SEVERE
oracle.adfmf.util.logging.ConsoleHandler.formatter=oracle.adfmf.util.logging.PatternFormatter
oracle.adfmf.util.logging.PatternFormatter.pattern=[%LEVEL% - %LOGGER% - %CLASS% - %METHOD%]%MESSAGE%
oracle.adfmf.application.useParentHandlers=false
oracle.adfmf.application.handlers=oracle.adfmf.util.logging.ConsoleHandler
oracle.adfmf.application.level=INFO
oracle.adfmf.framework.useParentHandlers=false
oracle.adfmf.framework.handlers=oracle.adfmf.util.logging.ConsoleHandler
oracle.adfmf.framework.level=FINE
Which two actions would you perform to fulfill the requirements?
Use loggers from the com.sun.logging package in you code.
Set oracle.adfmf.application.level to FULL in the logging.properties file.
Set .handlerstooracle.adfmf.util.logging.handlers.SQLiteHandler in the logging.properties file to store the logs in a database since this is required by regulations.
Set oracle.adfmf.application.level to FINEST in the logging.properties file.
Set oracle.adfmf.framework.level to SEVERE in the logging.properties file.
Correct answer: CD