The SetGlobalLoggingConfiguration method, in Configuration Manager, defines the global logging configuration for the client. This configuration represents either component-level logging or default logging if component-level logging is not defined.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
UInt32 SetGlobalLoggingConfiguration( UInt32 LogLevel, UInt32 LogMaxSize, UInt32 LogMaxHistory, Boolean DebugLogging );
- Data type: UInt32Qualifiers: [in]The level of detail
that the log will capture. Possible values are shown below. The
default value is 1.
- Data type: UInt32Qualifiers: [in]The maximum size, in bytes, of a given log file.
- Data type: UInt32Qualifiers: [in]The number of incremented log files to accumulate before deleting. When this number has been reached, the creation of a new log file will result in the deletion of the oldest existing log file.
- Data type: BooleanQualifiers: [in]true if debug logging should be enabled. Debug logging is rarely used except for troubleshooting.
A UInt32 data type that is 0 to indicate success or non-zero to indicate failure.
This method manipulates registry keys. These keys should not be manipulated directly. However, for reference, these keys can be found at HKLM/Software/Microsoft/CCM/logging/@GLOBAL. Enabling debug logging with DebugLogging will result in the creation of a new key: HKLM/Software/Microsoft/CCM/logging/debuglogging.
For more information, see Configuration Manager Client Runtime Requirements.
For more information, see Configuration Manager Client Development Requirements.
ReferenceSMS_Client Client WMI Class
EvaluateMachinePolicy Method in Class SMS_Client
GetAssignedSite Method in Class SMS_Client
RequestMachinePolicy Method in Class SMS_Client
ResetPolicy Method in Class SMS_Client
SetAssignedSite Method in Class SMS_Client
TriggerSchedule Method in Class SMS_Client
Send comments about this topic to Microsoft.