Published: May 12, 2010
You can use Windows PowerShell cmdlets to log system events and perform diagnostics.
Clear-SPLogLevel
Resets the Windows trace logging and event logging levels to their default values.
Get-SPLogLevel
Returns a list of objects or diagnostic levels.
Set-SPLogLevel
Sets the trace and event level for a set of categories.
Get-SPLogEvent
Returns results from a Unified Logging Service (ULS) trace log.
Get-SPDiagnosticConfig
Retrieves ULS diagnostic configuration values of the farm.
Get-SPDiagnosticsProvider
Returns a diagnostics provider.
Merge-SPLogFile
Combines trace log entries from all farm computers into a single log file on the local computer.
New-SPLogFile
Creates a new log file.
New-SPUsageLogFile
Starts a new usage log file on the current server computer.
Set-SPDiagnosticConfig
Sets diagnostic configuration settings on the farm.
Set-SPDiagnosticsProvider
Enables a diagnostics provider and updates its retention policy.
May 12, 2010
Initial publication