You could also use the object in your own code in order to leverage advanced trickery/flexibility later...
pr.infoln("Hello info"); pr.errln("Hello err"); pr.debugln("Hello debug");
Default Print setup for actions: disable all messages, even to background archivers. You don't need to do this in normal circumstances since it is the default:
Print pr = new Print(PrintOpts.DISABLE_ENTIRELY); someAction.getPreferences().setPrintImpl(pr);
Alternative Print setup for actions: use commons logging. Example:
Print pr = new Print(PrintOpts.USE_COMMONS_LOGGING); someAction.getPreferences().setPrintImpl(pr);
Only three logging levels are used. INFO, ERROR, and DEBUG. If DEBUG is enabled, ERROR level messages will get exceptions (causing stacktrace logs). Note that in almost all cases there are no ERROR logs in the core action APIs, just throwing exceptions is preferred there.
@see PrintOpts#PrintOpts(int[]) @see org.globus.workspace.client_core.Action @see org.globus.workspace.client_core.Settings
|
|
|
|