Creates a log file in the designated capture path.

Syntax

Response = HTTP_Services('CreateLogFile', LogType, Data)

Returns

N/A

Parameters

ParameterDescription
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 requested.

  • No labels