This discussion is archived
4 Replies Latest reply: Feb 22, 2013 12:18 AM by Frank Nimphius RSS

ADF Mobile: Logging

Bijesh Krishnadas Journeyer
Currently Being Moderated
JDeveloper : Build: JDEVADF_11.
Deployed to Android Emulator: Android 4.0.3 (API Level 15) - ARM

I am having trouble working out the documentation on logging - [] . From how I read the doco states that in Android, the console output is redirected to a text file in /sdcard. I have checked that /sdcard in my emulator has rw permissions. However, even on an error in the app, there are no log files generated.

The doco states that should be in .adf/META-INF but by default JDev generates a in src/META-INF. I have edited both to set the log level to FINEST. Note: at the moment, I am merely trying to see the stacktrace for a framework generated exception.
# default all loggers to use the ConsoleHandler
# default all loggers to use the SimpleFormatter
# default ConsoleHandler logging level to SEVERE

oracle.adfmf.util.logging.PatternFormatter.pattern=[%LEVEL% - %LOGGER% - %CLASS% - %METHOD%] %MESSAGE%

#configure the framework logger to only use the adfmf ConsoleHandler

#configure the application logger to only use the adfmf ConsoleHandler
What I am trying to work out is do I have to use a FileHandler explicitly or is the doco right in stating that all console output gets written to /sdcard?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points