C# Class Microsoft.CodeAnalysis.Sarif.Writers.SarifLogger

Inheritance: IDisposable, IAnalysisLogger
Afficher le fichier Open project: Microsoft/sarif-sdk Class Usage Examples

Méthodes publiques

Méthode Description
AnalysisStarted ( ) : void
AnalysisStopped ( RuntimeConditions runtimeConditions ) : void
AnalyzingTarget ( IAnalysisContext context ) : void
Dispose ( ) : void
Log ( IRule rule, System.Result result ) : void
Log ( ResultLevel messageKind, IAnalysisContext context, Region region, string formatId ) : void
LogConfigurationNotification ( Notification notification ) : void
LogMessage ( bool verbose, string message ) : void
LogToolNotification ( Notification notification ) : void
SarifLogger ( TextWriter textWriter, IEnumerable analysisTargets, bool verbose, bool logEnvironment, bool computeTargetsHash, string prereleaseInfo, IEnumerable invocationTokensToRedact ) : System
SarifLogger ( TextWriter textWriter, bool verbose ) : System
SarifLogger ( TextWriter textWriter, bool verbose, bool computeTargetsHash, Tool tool, Run run ) : System
SarifLogger ( string outputFilePath, IEnumerable analysisTargets, bool verbose, bool logEnvironment, bool computeTargetsHash, string prereleaseInfo, IEnumerable invocationTokensToRedact ) : System
SarifLogger ( string outputFilePath, bool verbose, bool computeTargetsHash, Tool tool, Run run ) : System
ShouldLog ( ResultLevel level ) : bool

Private Methods

Méthode Description
CaptureAnnotatedCodeLocations ( IList locations ) : void
CaptureFile ( Uri uri ) : void
CaptureFilesInResult ( System.Result result ) : void
CreateRun ( IEnumerable analysisTargets, bool computeTargetsHash, bool logEnvironment, IEnumerable invocationTokensToRedact ) : Run
LogJsonIssue ( ResultLevel level, string targetPath, Region region, string ruleId, string formatId ) : void
Redact ( string text, IEnumerable tokensToRedact ) : string
SetSarifLoggerVersion ( Tool tool ) : void

Method Details

AnalysisStarted() public méthode

public AnalysisStarted ( ) : void
Résultat void

AnalysisStopped() public méthode

public AnalysisStopped ( RuntimeConditions runtimeConditions ) : void
runtimeConditions RuntimeConditions
Résultat void

AnalyzingTarget() public méthode

public AnalyzingTarget ( IAnalysisContext context ) : void
context IAnalysisContext
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Log() public méthode

public Log ( IRule rule, System.Result result ) : void
rule IRule
result System.Result
Résultat void

Log() public méthode

public Log ( ResultLevel messageKind, IAnalysisContext context, Region region, string formatId ) : void
messageKind ResultLevel
context IAnalysisContext
region Region
formatId string
Résultat void

LogConfigurationNotification() public méthode

public LogConfigurationNotification ( Notification notification ) : void
notification Notification
Résultat void

LogMessage() public méthode

public LogMessage ( bool verbose, string message ) : void
verbose bool
message string
Résultat void

LogToolNotification() public méthode

public LogToolNotification ( Notification notification ) : void
notification Notification
Résultat void

SarifLogger() public méthode

public SarifLogger ( TextWriter textWriter, IEnumerable analysisTargets, bool verbose, bool logEnvironment, bool computeTargetsHash, string prereleaseInfo, IEnumerable invocationTokensToRedact ) : System
textWriter System.IO.TextWriter
analysisTargets IEnumerable
verbose bool
logEnvironment bool
computeTargetsHash bool
prereleaseInfo string
invocationTokensToRedact IEnumerable
Résultat System

SarifLogger() public méthode

public SarifLogger ( TextWriter textWriter, bool verbose ) : System
textWriter System.IO.TextWriter
verbose bool
Résultat System

SarifLogger() public méthode

public SarifLogger ( TextWriter textWriter, bool verbose, bool computeTargetsHash, Tool tool, Run run ) : System
textWriter System.IO.TextWriter
verbose bool
computeTargetsHash bool
tool Tool
run Run
Résultat System

SarifLogger() public méthode

public SarifLogger ( string outputFilePath, IEnumerable analysisTargets, bool verbose, bool logEnvironment, bool computeTargetsHash, string prereleaseInfo, IEnumerable invocationTokensToRedact ) : System
outputFilePath string
analysisTargets IEnumerable
verbose bool
logEnvironment bool
computeTargetsHash bool
prereleaseInfo string
invocationTokensToRedact IEnumerable
Résultat System

SarifLogger() public méthode

public SarifLogger ( string outputFilePath, bool verbose, bool computeTargetsHash, Tool tool, Run run ) : System
outputFilePath string
verbose bool
computeTargetsHash bool
tool Tool
run Run
Résultat System

ShouldLog() public méthode

public ShouldLog ( ResultLevel level ) : bool
level ResultLevel
Résultat bool