Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Unified Diff: lib/src/log.dart

Issue 1267853002: Add verbosity levels for warnings and errors. (Closed) Base URL: https://github.com/dart-lang/pub.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/git.dart ('k') | test/pub_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/log.dart
diff --git a/lib/src/log.dart b/lib/src/log.dart
index 0b14ab30eb0b2050557c973e18d2ddb75903856c..13527c06f86bc88248b7ddd5b65955e5f21434b5 100644
--- a/lib/src/log.dart
+++ b/lib/src/log.dart
@@ -111,6 +111,16 @@ class Verbosity {
Level.FINE: null
});
+ /// Shows only errors.
+ static const ERROR = const Verbosity._("error", const {
+ Level.ERROR: _logToStderr,
+ Level.WARNING: null,
+ Level.MESSAGE: null,
+ Level.IO: null,
+ Level.SOLVER: null,
+ Level.FINE: null
+ });
+
/// Shows only errors and warnings.
static const WARNING = const Verbosity._("warning", const {
Level.ERROR: _logToStderr,
« no previous file with comments | « lib/src/git.dart ('k') | test/pub_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698