Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Adds a log file to the collection.
LogFiles.Add( _
ByVal pathname As String _
) As LogFileItem
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.
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.
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
DLL |
|
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today