Welcome to mirror list, hosted at ThFree Co, Russian Federation.

LoggerInterface.php « Logger « src « scssphp « scssphp - github.com/nextcloud/3rdparty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7c0a2f76e9ac72c89bca1285e6e824379ab17017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php

/**
 * SCSSPHP
 *
 * @copyright 2012-2020 Leaf Corcoran
 *
 * @license http://opensource.org/licenses/MIT MIT
 *
 * @link http://scssphp.github.io/scssphp
 */

namespace ScssPhp\ScssPhp\Logger;

/**
 * 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).
 */
interface LoggerInterface
{
    /**
     * 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.
     *
     * @param string $message
     * @param bool  $deprecation
     *
     * @return void
     */
    public function warn($message, $deprecation = false);

    /**
     * Emits a debugging message.
     *
     * @param string $message
     *
     * @return void
     */
    public function debug($message);
}