java.lang.Objectjwrapper.jwutils.JWLogging
public class JWLogging
Used to track success of a child virtual app and also for the child virtual app to respond with success or failure etc
Constructor Summary | |
---|---|
JWLogging()
|
Method Summary | |
---|---|
static void |
appendProcessError(java.lang.String err)
Append an error message onto a previously (or future) logged process result |
static void |
appendProcessMessage(java.lang.String msg)
Append an information message onto a previously (or future) logged process result |
static void |
appendProcessTrace(java.lang.Throwable t)
Append a stacktrace onto a previously (or future) logged process result (future writes will *overwrite* earlier ones) |
static LogPoller |
newLogPoller()
Create a new log poller to query for process results from a launcher virtual app etc In order to poll logs for a newly launched virtual app it will be necessary to set JWLauncher.setCreateDebugLogs or JWLauncher.setCreateDebugLogsUntil for the launch to ensure it actually creates debug logs for the virtual app launch |
static void |
writeProcessResult(int processResultCode)
Write a result for this virtual app with a success or fail or any other code (see ProcessResult static fields) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JWLogging()
Method Detail |
---|
public static void appendProcessError(java.lang.String err)
retcode
- public static void appendProcessMessage(java.lang.String msg)
retcode
- public static void appendProcessTrace(java.lang.Throwable t)
retcode
- public static LogPoller newLogPoller()
public static void writeProcessResult(int processResultCode)
success
- whether this virtual app was successful