Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Interface implemented by loggers for warnings and debug messages. More...
Public Member Functions | |
debug ($message) | |
Emits a debugging message. | |
warn ($message, $deprecation=false) | |
Emits a warning with the given message. | |
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).
ScssPhp\ScssPhp\Logger\LoggerInterface::debug | ( | $message | ) |
Emits a debugging message.
string | $message |
void |
Implemented in ScssPhp\ScssPhp\Logger\QuietLogger, and ScssPhp\ScssPhp\Logger\StreamLogger.
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.
string | $message | |
bool | $deprecation |
void |
Implemented in ScssPhp\ScssPhp\Logger\QuietLogger, and ScssPhp\ScssPhp\Logger\StreamLogger.