Set-FASTSearchSecurityLogLevel
Applies to: SharePoint Server 2010
Updates the log level general setting.
Syntax
Set-FASTSearchSecurityLogLevel [[-GeneralSetting] <LogLevelSetting>] [-DebugNameSpaceLogLevel <String[]>] [-DefaultLogLevel <String>] [-ErrorNameSpaceLogLevel <String[]>] [-IncludeExceptionStack <Nullable>] [-InfoNameSpaceLogLevel <String[]>] [-WarningNameSpaceLogLevel <String[]>]
Detailed Description
This cmdlet updates the configuration information for the log level's general setting. The log level controls the type of information that is logged by the security system.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
GeneralSetting |
Optional |
Microsoft.SharePoint.Search.Extended.Security.PowerShell.Commands.GeneralSettings.LogLevelSetting |
A LogLevelSetting whose property values are used for the LogLevelSetting being updated. |
DebugNameSpaceLogLevel |
Optional |
System.String[] |
A list of C# namespaces. Any class contained in that namespace logs all messages to the log. A class can occur in only one namespace. If you specify the same class in more than one name space log level, the log level that generates the most messages will be set. |
DefaultLogLevel |
Optional |
System.String |
Specifies the type of log messages that each class writes to the log, unless the class is contained in a namespace explicitly specified in ErrorLogLevelNameSpaces, WarningLogLevelNameSpaces, InfoLogLevelNameSpaces, and DebugLogLevelNameSpaces. Valid values are: -- Error -- Warning -- Info -- Debug |
ErrorNameSpaceLogLevel |
Optional |
System.String[] |
A list of C# namespaces. Any class included in the namespace only logs error messages. A class can occur in only one namespace. If you specify the same class in more than one namespace log level, the log level that generates the most messages will be set. |
IncludeExceptionStack |
Optional |
System.Nullable |
Whether or not to include the exception stack in the log. Set to $True to include the exception stack. |
InfoNameSpaceLogLevel |
Optional |
System.String[] |
A list of C# namespaces. Any class contained in that namespace only logs error, warning, and info messages. A class can occur in only one namespace. If you specify the same class in more than one namespace log level, the log level that generates the most messages will be set. |
WarningNameSpaceLogLevel |
Optional |
System.String[] |
A list of C# namespaces. Any class included in the namespace only logs error and warning messages. A class can occur in only one namespace. If you specify the same class in more one than namespace log level, the log level that generates the most messages will be set. |
Input Types
Return Types
Example
---------------EXAMPLE 1-----------------
Set-FASTSearchSecurityLogLevel -DefaultLogLevel debug -IncludeExceptionStack $True
This example sets the default log level to the “Debug” level and enables the setting to include the exception stack in the log.
---------------EXAMPLE 2-----------------
Set-FASTSearchSecurityLogLevel -WarningNameSpaceLogLevel Microsoft
This example sets the log level setting for the “Microsoft” namespace to the “Warning” level.