QSharpLogger Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public class QSharpLogger : Microsoft.Quantum.QsCompiler.Diagnostics.LogTracker
type QSharpLogger = class
inherit LogTracker
Public Class QSharpLogger
Inherits LogTracker
- Inheritance
Constructors
| QSharpLogger(ILogger, Int32) |
Properties
| ErrorCodesToIgnore | |
| ErrorIds | |
| Errors | |
| Format | |
| HasErrors | |
| Logger | |
| Logs | |
| Messages | |
| NrErrorsLogged | (Inherited from LogTracker) |
| NrExceptionsLogged | (Inherited from LogTracker) |
| NrWarningsLogged | (Inherited from LogTracker) |
| Verbosity | (Inherited from LogTracker) |
| WarningCodesToIgnore | |
| Warnings | |
Methods
| Log(Diagnostic) |
Increases the error or warning counter if appropriate, and prints the given diagnostic ff the logger verbosity is sufficiently high. Before printing, the line numbers are shifted by the offset specified upon initialization. Returns without doing anything if the given diagnostic is a warning that is to be ignored. (Inherited from LogTracker) |
| Log(Diagnostic[]) |
Logs the given diagnostic messages. Ignores any parameter that is null. (Inherited from LogTracker) |
| Log(ErrorCode, IEnumerable<String>, String, Range) |
Logs a diagnostic message based on the given error code, with the given source as the file for which the error occurred. (Inherited from LogTracker) |
| Log(Exception) |
Increases the exception counter and calls OnException with the given exception. (Inherited from LogTracker) |
| Log(InformationCode, IEnumerable<String>, String, Range, String[]) |
Generates a Diagnostic message based on the given information code, with any message parameters appended on a new line to the message defined by the information code. The given source is listed as the file for which the error occurred. (Inherited from LogTracker) |
| Log(WarningCode, IEnumerable<String>, String, Range) |
Logs a a diagnostic message based on the given warning code, with the given source as the file for which the error occurred. (Inherited from LogTracker) |
| LogDebug(String) | |
| LogError(String, String) | |
| LogInfo(String) | |
| LogWarning(String, String) | |
| MapLevel(DiagnosticSeverity) | |
| MapLevel(Nullable<DiagnosticSeverity>) | |
| OnException(Exception) |
Called whenever an exception is logged after the exception has been properly tracked. Prints the given exception as Hint if the logger verbosity is sufficiently high. (Inherited from LogTracker) |
| Print(Diagnostic) | |
| Reset() | |