Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
ScssPhp\ScssPhp\Logger\LoggerInterface Interface Reference

Interface implemented by loggers for warnings and debug messages. More...

Inheritance diagram for ScssPhp\ScssPhp\Logger\LoggerInterface:
ScssPhp\ScssPhp\Logger\QuietLogger ScssPhp\ScssPhp\Logger\StreamLogger

Public Member Functions

 debug ($message)
 Emits a debugging message.
 
 warn ($message, $deprecation=false)
 Emits a warning with the given message.
 

Detailed Description

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).

Member Function Documentation

◆ debug()

ScssPhp\ScssPhp\Logger\LoggerInterface::debug ( $message)

Emits a debugging message.

Parameters
string$message
Return values
void

Implemented in ScssPhp\ScssPhp\Logger\QuietLogger, and ScssPhp\ScssPhp\Logger\StreamLogger.

◆ warn()

ScssPhp\ScssPhp\Logger\LoggerInterface::warn ( $message,
$deprecation = false )

Emits a warning with the given message.

If $deprecation is true, it indicates that this is a deprecation warning. Implementations should surface all this information to the end user.

Parameters
string$message
bool$deprecation
Return values
void

Implemented in ScssPhp\ScssPhp\Logger\QuietLogger, and ScssPhp\ScssPhp\Logger\StreamLogger.


The documentation for this interface was generated from the following file: