LocationAwareLoggerInterface

Extends LoggerInterface

Interface implemented by loggers for warnings and debug messages.

The official Sass implementation recommends that loggers report the messages immediately rather than waiting for the end of the compilation, to provide a better debugging experience when the compilation does not end (error or infinite loop after the warning for instance).

package

Application

Methods

Emits a debugging message associated with the given span.

debug(stringmessage, ?\ScssPhp\ScssPhp\SourceSpan\FileSpanspan = null) : void

Arguments

message

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

span

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 ?\ScssPhp\ScssPhp\SourceSpan\FileSpan

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Emits a warning with the given message.

warn(stringmessage, booldeprecation = false, ?\ScssPhp\ScssPhp\SourceSpan\FileSpanspan = null, ?\ScssPhp\ScssPhp\StackTrace\Tracetrace = null) : void

If $span is passed, it's the location in the Sass source that generated the warning. If $trace is passed, it's the Sass stack trace when the warning was issued. If $deprecation is true, it indicates that this is a deprecation warning. Implementations should surface all this information to the end user.

Arguments

message

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

deprecation

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 bool

span

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 ?\ScssPhp\ScssPhp\SourceSpan\FileSpan

trace

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 ?\ScssPhp\ScssPhp\StackTrace\Trace

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50