C# Class Microsoft.Common.Core.Logging.LoggingPermissions

Determines logging permissions depending on the current telemetry settings and registry keys.
Rules: a. Feedback and logging is permitted if telemetry is enabled. If telemetry is off, admin can selectively enable feedback and logging in registry under HKLM. b. If telemetry is on, default logging level is 'Normal'. This allows recording of all events but security and privacy related data such as cross-process traffic or commands and data in the interactive window. c. Admin can limit level of logging and disable feedback sending even if app telemetry is on.
Inheritance: ILoggingPermissions
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode Description
LoggingPermissions ( IApplicationConstants appConstants, ITelemetryService telemetryService, IRegistry registry ) : System

Private Methods

Méthode Description
GetEffectiveFeedbackSetting ( ) : bool
GetEffectiveVerbosity ( ) : LogVerbosity
GetFeedbackFromRegistry ( ) : int?
GetLogLevelFromRegistry ( ) : LogVerbosity?
GetValueFromRegistry ( string name, int minValue, int maxValue ) : int?

Method Details

LoggingPermissions() public méthode

public LoggingPermissions ( IApplicationConstants appConstants, ITelemetryService telemetryService, IRegistry registry ) : System
appConstants IApplicationConstants
telemetryService ITelemetryService
registry IRegistry
Résultat System