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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef BIN_LOG_H_
6 #define BIN_LOG_H_
7
8 #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.
9
10 class Log {
11 public:
12 // Print formatted output to stdout/stderr for debugging.
13 static void Print(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
14 static void PrintErr(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
15 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.
16 };
17
18 #endif // BIN_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698