IBM User Guide for Java V7 on Windows > Troubleshooting and support > Using diagnostic tools > Using the JVMTI > IBM JVMTI extensions - API reference
Setting JVM log options
You can set the log options for a JVM using the same syntax as the -Xlog command-line option.
The SetVmLogOptions() API has the JVMTI Extension Function identifier com.ibm.SetVmLogOptions. The identifier is declared as macro COM_IBM_SET_VM_LOG_OPTIONS in ibmjvmti.h.
To set the JVM log options use:
jvmtiError SetVmLogOptions(jvmtiEnv* jvmti_env, char* options_buffer)The log option is passed in as an ASCII character string. Use the same syntax as the -Xlog command-line option, with the initial -Xlog: omitted. For example, to set the JVM to log error and warning messages, pass in a string containing "error,warn". For more information about using the -Xlog option, see JVM command-line options.
- Parameters:
- jvmti_env: A pointer to the JVMTI environment.
- options_buffer: A pointer to memory containing the log option.
- Returns:
- JVMTI_ERROR_NONE: Success.
- JVMTI_ERROR_NULL_POINTER: The parameter option is null.
- JVMTI_ERROR_OUT_OF_MEMORY: There is insufficient system memory to process the request.
- JVMTI_ERROR_INVALID_ENVIRONMENT: The jvmti_env parameter is invalid.
- JVMTI_ERROR_WRONG_PHASE: The extension has been called outside the JVMTI live phase.
- JVMTI_ERROR_ILLEGAL_ARGUMENT: The parameter option contains an invalid -Xlog string.
Parent: IBM JVMTI extensions - API reference
Error 404 - Not Found Error 404 - Not Found
The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.