Generate log messages

Log messages in the JVP log file can originate from any of the following sources:
  • The JVP
    JVP messages report such conditions as:
    • JVP status (such as boot progress)
    • Warnings about missing or limited resources
    • Execution errors (such as being unable to locate a UDR)
    • Internal errors (such as unexpected exceptions)

    JVP log messages that report serious errors usually print a Java-method stack trace.

  • The UDR

    Log messages from the UDR are messages that make sense only in the JVP and Java™ domain or that can complement the messages from SQL or the database server with annotations and references that are specific to Java code or the JVP.

    Use the following methods to write messages to the JVP log file from within a UDR:
    • UDRLog.log()
    • UDRTraceable.tracePrint()
By default, the JVP uses the following log file:
/usr/informix/jvp.log
where ‘.’ is the current directory of the user who runs oninit.
You can change this default log file with the JVPLOGFILE parameter in the onconfig configuration file. Set this configuration parameter to the name of the log file that you want the JVP to use. For example, the following line sets the log file to /usr/jvp.log:
JVPLOGFILE /usr/jvp.log
Restriction: Do not use the JVP log for error messages that need to be reported to the client application or to the main online.log file. Instead, the method throws an SQLException.

Copyright© 2018 HCL Technologies Limited