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

Inheritance: IDisposable, IAnalysisLogger
Mostrar archivo Open project: Microsoft/sarif-sdk Class Usage Examples

Public Methods

Method 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

Method 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 method

public AnalysisStarted ( ) : void
return void

AnalysisStopped() public method

public AnalysisStopped ( RuntimeConditions runtimeConditions ) : void
runtimeConditions RuntimeConditions
return void

AnalyzingTarget() public method

public AnalyzingTarget ( IAnalysisContext context ) : void
context IAnalysisContext
return void

Dispose() public method

public Dispose ( ) : void
return void

Log() public method

public Log ( IRule rule, System.Result result ) : void
rule IRule
result System.Result
return void

Log() public method

public Log ( ResultLevel messageKind, IAnalysisContext context, Region region, string formatId ) : void
messageKind ResultLevel
context IAnalysisContext
region Region
formatId string
return void

LogConfigurationNotification() public method

public LogConfigurationNotification ( Notification notification ) : void
notification Notification
return void

LogMessage() public method

public LogMessage ( bool verbose, string message ) : void
verbose bool
message string
return void

LogToolNotification() public method

public LogToolNotification ( Notification notification ) : void
notification Notification
return void

SarifLogger() public method

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
return System

SarifLogger() public method

public SarifLogger ( TextWriter textWriter, bool verbose ) : System
textWriter System.IO.TextWriter
verbose bool
return System

SarifLogger() public method

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
return System

SarifLogger() public method

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
return System

SarifLogger() public method

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

ShouldLog() public method

public ShouldLog ( ResultLevel level ) : bool
level ResultLevel
return bool