Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 785
Product
XFile
Version
2.0
Title
How to suppress the file content in an XFile Debug Log
Problem
Until version 2.0, XFile would include the file content in the debug log. With large file transfers, this resulted in the generation of extrememly large log files. Since the file content is not always a useful element of a debug log, the file content may now be suppressed.
Solution

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>

Created : 1/15/2004 2:30:00 PM (last modified : 1/15/2004 2:30:00 PM)
Rate this article!
Comments