JavaSetLogOption Function

Action

Sets logging options for the Java Framework. It can be used, for example, to completely suppress all logging. This is useful when a complete API is based on the Java framework (for example, Silk Performer's Jacada support.

Include file

Java.bdh

Syntax

JavaSetLogOption( in nOption : number ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
nOption

Determines the logging option to be set. This parameter is one of the following flags:

  • JAVA_LOG_OPTION_DEFAULT. Logging is performed as configured via GUI or SetLogOption (default).

  • JAVA_LOG_OPTION_LOGFILE_ONLY. Suppresses any Java Framework output on the virtual user's output pane. However, log file writing is done as usual (if configured).

  • JAVA_LOG_OPTION_SILENT. Any Java Framework related logging is suppressed.

Example

dcltrans
  transaction TInit
  begin
    JavaSetLogOption(JAVA_LOG_OPTION_SILENT);
    JavaCreateJavaVM();
  end TInit;

Output

No output is generated.