In version 2.0 of XFile the DebugLevel property of the XFRequest object now accepts an additional value, enabling the suppression of the file content, as well as Response and Request bodies from being recorded to the log file.
Logging Action |
Version 2 Values |
Version 1 Values |
Do not generate log file (default) |
0 or False |
0 or False |
Generate log file. Log Request & Response bodies. Log file content. |
1 or True |
1 or True |
Generate log file. Do not log Request & Response bodies. Do not log file content. |
2 |
(Unavailable in version 1.x) |
Below is an example of how the DebugLevel property can be set in code.
<!--Instantiate XFile in client-side HTML-->
<OBJECT CLASSID="clsid:C3A57B60-C117-11D2-BD9B-00105A0A7E89" codebase="/SAXFileSamples/saxfile.cab" ID="SAXFile" VIEWASTEXT>
</OBJECT>
<SCRIPT LANGUAGE="VBS">
...
'-- Set the debugging level so that Response,Reqeust
'-- and File bodies are not logged.
SAXFile.DebugLevel=2
'-- Designate where the log file will be saved on the client.
SAXFile.DebugLog="C:\XFileLog.txt"
...
</SCRIPT>
|