Edit

Share via


Set-FASTSearchSecurityLogLevel

Updates the log level general setting.

Syntax

Default (Default)

Set-FASTSearchSecurityLogLevel
    [[-GeneralSetting] <LogLevelSetting>]
    [-DebugNameSpaceLogLevel <String[]>]
    [-DefaultLogLevel <String>]
    [-ErrorNameSpaceLogLevel <String[]>]
    [-IncludeExceptionStack <Boolean>]
    [-InfoNameSpaceLogLevel <String[]>]
    [-WarningNameSpaceLogLevel <String[]>]
    [<CommonParameters>]

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.

For permissions and the most current information about FAST Search Server 2010 for SharePoint cmdlets, see the online documentation, (https://go.microsoft.com/fwlink/?LinkId=163227).

Examples

EXAMPLE 1 (FAST Server for SharePoint 2010)

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 (FAST Server for SharePoint 2010)

Set-FASTSearchSecurityLogLevel -WarningNameSpaceLogLevel Microsoft

This example sets the log level setting for the "Microsoft" namespace to the "Warning" level.

Parameters

-DebugNameSpaceLogLevel

Applicable: FAST Server for SharePoint 2010

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.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultLogLevel

Applicable: FAST Server for SharePoint 2010

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ErrorNameSpaceLogLevel

Applicable: FAST Server for SharePoint 2010

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.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-GeneralSetting

Applicable: FAST Server for SharePoint 2010

A LogLevelSetting whose property values are used for the LogLevelSetting being updated.

Parameter properties

Type:LogLevelSetting
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:9999
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-IncludeExceptionStack

Applicable: FAST Server for SharePoint 2010

Whether or not to include the exception stack in the log. Set to $True to include the exception stack.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-InfoNameSpaceLogLevel

Applicable: FAST Server for SharePoint 2010

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.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WarningNameSpaceLogLevel

Applicable: FAST Server for SharePoint 2010

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.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.