Partager via


SetLogThreshold Method

The SetLogThreshold method of the SPGlobalAdmin class sets a logging threshold value that specifies the highest level for which messages are logged in usage analysis.

Parameters

iThreshold   A 32-bit integer that specifies the level of severity.

Remarks

The following table shows the possible levels of severity that can be passed in the iThreshold parameter.

Value Description
0 Error.
1 Warning about a problem.
2 Ignorable but a potential problem.
3 Infrequent and happens once per thread, but only information, not a problem.
4 Uncommon and happens several times per thread, but only information, not a problem.
5 Common and happens numerous times per thread, but only information, not a problem.
6 Frequent and happens many times per thread, but only information, not a problem.
7 Verbose log that provides all information.
8 Testing program only used by test application.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security