|
Class Reference
%XSQL.Log
|
|
![]() |
|||
Private Storage |
|
|
Properties |
---|
logFile |
|
|
ActivateLog (also called as a procedure - CALL InSync_SYS.activate_log()) will set the trace switch to begin logging. Messages logged using $$$TRACE macros will be written to the log file.
DeactivateLog (also callable as a procedure - CALL InSync_SYS.deactivate_log()) will turn of the trace switch so that $$$TRACE macros will not longer be written to the log file. The log file is also closed.
Report an error from a %SYSTEM.Error object
pError - an instance of %SYSTEM.Error
Report a function and its return value.
pName - the name of the value, for example, 'pFormal1' as the name of a formal argument
pValue - the value
logResult
Log an SQLCODE and %msg value
pSQLCODE - the SQLCODE value
pMessage - the %msg value
pPrefix - the prefix to use when writing the log content, defaults to two tab characters.
Log the contents of a %SQL.StatementResult object
Log SQL statement source
Report a status message from a trace
sc - pass as status code
message - pass a message to be written both to the current device and to the log (or "") (optional)
outcome - pass an array of stats (optional)
Copy the contents of a stream to the log
stream - stream to copy to the file.
Report a named value
pName - the name of the value, for example, 'pFormal1' as the name of a formal argument
pValue - the value
Report a execution of embedded/deferred SQL, its arguments, and status.
pStatement - the text of the SQL Statement executed
pArguments - the Arguments and their values
pSQLCODE - the resulting SQLCODE
pMsg - the resuting %msg (if any)
pROWCOUNT - the resulting %ROWCOUNT (if any)
pTime - the execution time (if any)
Report an error from a %SYSTEM.Error object
error - an instance of %SYSTEM.Error
Report an exception from a trace
pException - pass as an exception oref
Report a function and its return value.
pName - the name of the function method
pValue - the return value
traceResult
Log an SQLCODE and %msg value
pSQLCODE - the SQLCODE value
pMessage - the %msg value
pPrefix - the prefix to use when writing the log content, defaults to two tab characters.
Report a status message from a trace
sc - pass as status code
message - pass a message to be written both to the current device and to the log (or "") (optional)
outcome - pass an array of stats (optional)
Report a named value
pName - the name of the value, for example, 'pFormal1' as the name of a formal argument
pValue - the value
write() - write a message to the current log file