XdsObjects Help file
XdsObjects Namespace / XdsGlobal Class / LogToFile Method / LogToFile(String,LogLevel) Method

Path as string :

The location of the log files.

If an empty string being passed, XdsObjects will use the user's documents directory as the default location.

But still it is the caller's responsibility to ensure either that the path is valid and correct.

LogLevel as Integer:

This value controls the level of details logged to the file.




In This Topic
    LogToFile(String,LogLevel) Method
    In This Topic
    Enables XdsObjects logging, specifies where XdsObjects log files appear, what the logging level is and the timer interval when new log file should be generated.
    Syntax
    Public Overloads Shared Sub LogToFile( _
       ByVal Path As String, _
       ByVal Level As LogLevel _
    ) 
    Dim Path As String
    Dim Level As LogLevel
     
    XdsGlobal.LogToFile(Path, Level)
    public static void LogToFile( 
       string Path,
       LogLevel Level
    )
    public:
    static void LogToFile( 
       String^ Path,
       LogLevel Level
    ) 

    Parameters

    Path

    Path as string :

    The location of the log files.

    If an empty string being passed, XdsObjects will use the user's documents directory as the default location.

    But still it is the caller's responsibility to ensure either that the path is valid and correct.

    Level

    LogLevel as Integer:

    This value controls the level of details logged to the file.

    Remarks

    The RestartInterval parameter provides a means to restart the logging on a regular time basic. This is useful to avoid log file end up being HUGE.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also