Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / log / src / ConsoleLogLevel.php
diff --git a/vendor/consolidation/log/src/ConsoleLogLevel.php b/vendor/consolidation/log/src/ConsoleLogLevel.php
new file mode 100644 (file)
index 0000000..013e973
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+namespace Consolidation\Log;
+
+/**
+ * Additional log levels for use in Console applications.
+ *
+ * ConsoleLogLevels may be used by methods of Symfony Command
+ * in applications where it is known that the Consolidation logger
+ * is in use.  These log levels provide access to the 'success'
+ * styled output method.  Code in reusable libraries that may
+ * be used with a standard Psr-3 logger should aviod using these
+ * log levels.
+ *
+ * All ConsoleLogLevels should be interpreted as LogLevel\NOTICE.
+ *
+ * @author Greg Anderson <greg.1.anderson@greenknowe.org>
+ */
+class ConsoleLogLevel extends \Psr\Log\LogLevel
+{
+    /**
+     * Command successfully completed some operation.
+     * Displayed at VERBOSITY_NORMAL.
+     */
+    const SUCCESS = 'success';
+}