LogFiles.Add method

Adds a log file to the collection.

Syntax

LogFiles.Add( _
  ByVal pathname As String _
) As LogFileItem

Parameters

pathname [in]

Path to the log file. You can specify the path as an absolute, relative, or UNC path. The log file name extension must be either .csv, .tsv, or .blg.

Remarks

You must use the Logman.exe tool or the Perfmon.msc MMC snap-in to generate the log files that you add to this collection. For Perfmon.msc, the counter logs are located under Performance Logs and Alerts. For details on using Logman.exe or Perfmon.msc, search for Logman or Using Performance, respectively, in the Help and Support Center.

Prior to Windows Vista: You cannot add log files to the log file collection if the value of SystemMonitor.DataSourceType is set to DataSourceTypeConstants.sysmonLogFiles. First, set SystemMonitor.DataSourceType to DataSourceTypeConstants.sysmonNullDataSource, add your log files and counters, and then set SystemMonitor.DataSourceType to DataSourceTypeConstants.sysmonLogFiles.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
DLL
Sysmon.ocx

See also

LogFiles

LogFileItem

LogFiles