Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sets the self URL for the current serviceCreates a log file in the designated capture path.

Syntax

Code Block
Response = HTTP_Services('SetSelfURLCreateLogFile', SelfURLLogType, Data)

Returns

N/A

Parameters

ParameterDescription
SelfURLThe self URL relevant to the current service. Required

Remarks

LogTypeThe type of log to be written. This can be user-defined. Required
DataInformation used to create the log body. Some log types ignore this. Optional

Remarks

The predefined LogType values are Request, Response, ProcErr, and Debugger. All log files use the GetSessionID service to create part of the filename and are stored in the path derived from the GetCapturePath service. The final format follows this pattern:

YYYY-MM-DD_HH-MM-SS_<ProcessID>_<Counter>_<LogType>.log

ProcessID is created with the GetCurrentProcessID Windows API.

Counter is an internal counter tracked by the current session and increases for each log created. It is formatted as "R#(0)6".

LogType is the type of log that the caller has requestedThe self URL is the URL that identifies itself. It is typically returned in responses to serve as a self-referencing ID apart from other URLs that might be returned which direct the caller to other services.