Building Mobile Enterprise Applications : Using webMethods Mobile Designer : Coding a Mobile Application : Mobile Designer Logging API
Mobile Designer Logging API
Mobile Designer provides a java.util.logging API that is based on the Java Logging API standard. The java.util.logging package that Mobile Designer provides contains classes and interfaces that are based on the Connected Limited Device Configuration (CLDC) 8 standard. You can find information about this package in the javadocs for the java.util.logging package provided with the CLDC 8 standard.
Note:  
The Mobile Designer version of java.util.logging does not include the LoggingPermission class.
The following table describes some limitations and differences in the Mobile Designer version of the java.util.logging API based on platforms:
Platform
Limitation or Difference
All Platforms
The Logger class that Mobile Designer provides does not include a Logger.getGlobal() method. To access the global logger, use the following:
Logger.getLogger(Logger.GLOBAL_LOGGER_NAME)
Android
When running applications on the Android platform, the application uses the Java Standard Edition (Java SE) Logging API. It does not use the java.util.logging package that Mobile Designer provides.
When configuring loggers, take into consideration that the global logger is not a root logger. The following code shows how to obtain the root logger in the logger’s hierarchy.
Logger rootLogger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
if (rootLogger.getParent() != null)
{
rootLogger = rootLogger.getParent();
}
iOS
When running applications on the iOS platform, the application uses the java.util.logging API that Mobile Designer provides rather than the Java SE Logging API. The standard output for the ConsoleHandler class is console in Xcode.
Windows Phone
Windows RT
Windows 8
When running applications on the Windows platforms, the application uses the java.util.logging API that Mobile Designer provides rather than the Java SE Logging API. The standard output for the ConsoleHandler class is output in Visual Studio.
Phoney
When running applications in the Mobile Designer Phoney utility, the application uses the Java SE Logging API. It does not use the java.util.logging package that Mobile Designer provides.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback