oracle adf - How to print log in ADF mobile -
i have followed step in
http://docs.oracle.com/cd/e35521_01/doc.111230/e24475/debugging.htm
and emulator connected server. have try every code displaying error. log not printed. used following code displaying log.
system.out.print("test new"); trace.log(utility.applicationlogger, level.severe, test.class, "activate", "!!!!!!!!!!feature 1 activate!!!!!!!!!!"); adf.mf.log.application.logp(adf.mf.log.level.warning,"myclass","mymethod","my message"); utility.applicationlogger.logp(level.warning, test.class.getname(), "ontestmessage", "embedded warning message 1"); logger.getlogger(utility.app_logname).logp(level.warning, this.getclass().getname(), "ontestmessage", "embedded warning message 2"); logger.getlogger("oracle.adfmf.application").logp(level.warning, this.getclass().getname(), "ontestmessage", "embedded warning message 3");
and use javascript displaying log. still log not print.
adfmfcontainerutilities.invokecontainerjavascriptfunction("javascript", "doalert", new object[] {"arg1"});
my java script :
(function () { doalert = function (str) { var s = ''; s = s + str; alert('hello ' + s); }; })();
my cvm.property file :
# java debugging settings java.debug.enabled=true # specifies integer value of port use during debugging java.debug.port=4000 # javascript debugging settings javascript.debug.enabled=true # settings default heap size # refer http://docs.oracle.com/javame/config/cdc/cdc-opt-impl/ojmeec/1.0/runtime/html/cvm.htm java.commandline.argument=-xms50m java.commandline.argument=-xmn25m java.commandline.argument=-xmx125m # specifies feature trigger activation of javascript debugging javascript.debug.feature=feature1:
my logging.properties file :
# default loggers use consolehandler .handlers=com.sun.util.logging.consolehandler # default loggers use simpleformatter .formatter=com.sun.util.logging.simpleformatter # default consolehandler logging level severe oracle.adfmf.util.logging.consolehandler.level=severe oracle.adfmf.util.logging.consolehandler.formatter=oracle.adfmf.util.logging.patternformatter #oracle.adfmf.util.logging.consolehandler.level=finest oracle.adfmf.util.logging.patternformatter.pattern=[%level% - %logger% - %class% - %method%] %message% #configure framework logger use adfmf consolehandler oracle.adfmf.framework.useparenthandlers=false oracle.adfmf.framework.handlers=oracle.adfmf.util.logging.consolehandler oracle.adfmf.framework.level=severe #configure application logger use adfmf consolehandler oracle.adfmf.application.useparenthandlers=false oracle.adfmf.application.handlers=oracle.adfmf.util.logging.consolehandler oracle.adfmf.application.level=severe
Comments
Post a Comment