C# Класс Microsoft.CodeAnalysis.Sarif.Writers.SarifLogger

Наследование: IDisposable, IAnalysisLogger
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AnalysisStarted() публичный Метод

public AnalysisStarted ( ) : void
Результат void

AnalysisStopped() публичный Метод

public AnalysisStopped ( RuntimeConditions runtimeConditions ) : void
runtimeConditions RuntimeConditions
Результат void

AnalyzingTarget() публичный Метод

public AnalyzingTarget ( IAnalysisContext context ) : void
context IAnalysisContext
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Log() публичный Метод

public Log ( IRule rule, System.Result result ) : void
rule IRule
result System.Result
Результат void

Log() публичный Метод

public Log ( ResultLevel messageKind, IAnalysisContext context, Region region, string formatId ) : void
messageKind ResultLevel
context IAnalysisContext
region Region
formatId string
Результат void

LogConfigurationNotification() публичный Метод

public LogConfigurationNotification ( Notification notification ) : void
notification Notification
Результат void

LogMessage() публичный Метод

public LogMessage ( bool verbose, string message ) : void
verbose bool
message string
Результат void

LogToolNotification() публичный Метод

public LogToolNotification ( Notification notification ) : void
notification Notification
Результат void

SarifLogger() публичный Метод

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
Результат System

SarifLogger() публичный Метод

public SarifLogger ( TextWriter textWriter, bool verbose ) : System
textWriter System.IO.TextWriter
verbose bool
Результат System

SarifLogger() публичный Метод

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
Результат System

SarifLogger() публичный Метод

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
Результат System

SarifLogger() публичный Метод

public SarifLogger ( string outputFilePath, bool verbose, bool computeTargetsHash, Tool tool, Run run ) : System
outputFilePath string
verbose bool
computeTargetsHash bool
tool Tool
run Run
Результат System

ShouldLog() публичный Метод

public ShouldLog ( ResultLevel level ) : bool
level ResultLevel
Результат bool