Properties
errorCount
errorCount: number = 0
warningCount
warningCount: number = 0
Methods
Protected
addContext
- addContext(message, _level, ..._args): string
Returns string
deprecated
- deprecated(text, addStack?): void
Internal
Parameters
text: string
addStack: boolean = true
Returns void
diagnostic
- diagnostic(diagnostic): void
Returns void
diagnostics
- diagnostics(diagnostics): void
Parameters
diagnostics: readonly Diagnostic[]
Returns void
error
- error(text, node?): void
Parameters
text: string
Optional
node: Node
Returns void
- error(text, pos, file): void
Returns void
hasErrors
- hasErrors(): boolean
Returns boolean
hasWarnings
- hasWarnings(): boolean
Returns boolean
info
- info(text): void
Returns void
log
- log(_message, level): void
Returns void
resetErrors
- resetErrors(): void
Returns void
resetWarnings
- resetWarnings(): void
Returns void
verbose
- verbose(text): void
Returns void
warn
- warn(text, node?): void
Parameters
text: string
Optional
node: Node
Returns void
- warn(text, pos, file): void
Returns void
A logger that will not produce any output.
This logger also serves as the base class of other loggers as it implements all the required utility functions.