diff --git a/src/MDConsole.php b/src/MDConsole.php index 7395397..eaa4916 100644 --- a/src/MDConsole.php +++ b/src/MDConsole.php @@ -28,6 +28,9 @@ final class MDConsole { const CONSOLE_LOG_USED_RESOURCES_ENABLED = 1; const CONSOLE_LOG_USED_RESOURCES_DISABLED = 0; + /** @var boolean */ + public static $verbose = true; + /** * Prints a headline. * @@ -86,6 +89,8 @@ final class MDConsole { */ final public static function write(string $context, int $level = self::STATUS_NOTICE, int $editedNo = 0, string $additionalNote = "", string $link = ""):void { + if (self::$verbose === false and $level === self::STATUS_NOTICE) return; + // Get parts for generating the message to log. $additionalNote = \strtr($additionalNote, ["ä" => "ae", "ö" => "oe", "ü" => "ue"]); $date = \date("H:i:s"); // Get current date & time.