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

Unified Diff: runtime/bin/log.h

Issue 11312242: Revised CL for customisable logging (replacing printfs). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
Index: runtime/bin/log.h
===================================================================
--- runtime/bin/log.h (revision 0)
+++ runtime/bin/log.h (revision 0)
@@ -0,0 +1,18 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#ifndef BIN_LOG_H_
+#define BIN_LOG_H_
+
+#include "bin/builtin.h"
Ivan Posva 2012/11/15 07:43:17 Why do you need to include builtin.h here? There a
gram 2012/11/15 21:16:50 Removed.
+
+class Log {
+ public:
+ // Print formatted output to stdout/stderr for debugging.
+ static void Print(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
+ static void PrintErr(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
+ static void VFPrint(FILE* stream, const char* format, va_list args);
siva 2012/11/15 18:46:48 Does VFPrint need to be a public function? I did
gram 2012/11/15 21:16:50 Done.
+};
+
+#endif // BIN_LOG_H_

Powered by Google App Engine
This is Rietveld 408576698