If you wish to use logging for your transactions, the following subroutine describes how you can set it up:
Create the logging object.
Set the log file if you have a requirement for debugging.
Set the logging level, where 7 is the most verbose.
Set the flags for message formatting options.
Write a message into the log file.
Public Sub Set_Logging() Set alog = CreateObject("Log.java.1") alog def.setOutputFile ("C:\temp\activelinc.log") alog def.setLogLevel (7) alog def.setFlags (30) alog.def.log("Module Name", log_level, "Message") End Sub
To use logging, include the following line to the main subroutine that loads the forms, and handles the connection and transaction processing, before you create the LINCEnvironment object:
Set_Logging