Logger
Hierarchy
- Logger
Methods
Optional debug
- debug(message: string, options: {
span: SourceSpan;
}): void -
This method is called when Sass emits a debug message due to a
@debugrule.If this is
undefined, Sass will print debug messages to standard error.Parameters
-
message: string
The debug message.
-
options: {
span: SourceSpan;
}-
span: SourceSpan
The location in the Sass source code that generated this debug message.
-
Returns void
-
Optional warn
- warn(message: string, options: {
deprecation: boolean;
span?: SourceSpan;
stack?: string;
}): void -
This method is called when Sass emits a warning, whether due to a
@warnrule or a warning generated by the Sass compiler.If this is
undefined, Sass will print warnings to standard error.Parameters
-
message: string
The warning message.
-
options: {
deprecation: boolean;
span?: SourceSpan;
stack?: string;
}-
deprecation: boolean
Whether this is a deprecation warning.
-
Optionalspan?: SourceSpanThe location in the Sass source code that generated this warning.
-
Optionalstack?: stringThe Sass stack trace at the point the warning was issued.
-
Returns void
-
An object that can be passed to logger to control how Sass emits warnings and debug messages.
Example