LogTracker 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 abstract class LogTracker : Microsoft.Quantum.QsCompiler.Diagnostics.ILogger
type LogTracker = class
interface ILogger
Public MustInherit Class LogTracker
Implements ILogger
- Inheritance
-
LogTracker
- Derived
- Implements
Constructors
| LogTracker(DiagnosticSeverity, IEnumerable<Int32>, Int32) |
Properties
| NrErrorsLogged | |
| NrExceptionsLogged | |
| NrWarningsLogged | |
| Verbosity |
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. |
| Log(Diagnostic[]) |
Logs the given diagnostic messages. Ignores any parameter that is null. |
| 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. |
| Log(Exception) |
Increases the exception counter and calls OnException with the given exception. |
| 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. |
| 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. |
| 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. |
| Print(Diagnostic) |
Called whenever a diagnostic is logged after the diagnostic has been properly processed. |