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

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
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/bin/log_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdarg.h>
9
10 #include "platform/globals.h"
11
12 class Log {
13 public:
14 // Print formatted output for debugging.
15 static void Print(const char* format, ...) PRINTF_ATTRIBUTE(1, 2) {
16 va_list args;
17 va_start(args, format);
18 VPrint(format, args);
19 va_end(args);
20 }
21
22 static void VPrint(const char* format, va_list args);
23
24 static void PrintErr(const char* format, ...) PRINTF_ATTRIBUTE(1, 2) {
25 va_list args;
26 va_start(args, format);
27 VPrintErr(format, args);
28 va_end(args);
29 }
30
31 static void VPrintErr(const char* format, va_list args);
32
33 DISALLOW_ALLOCATION();
34 DISALLOW_IMPLICIT_CONSTRUCTORS(Log);
35 };
36
37 #endif // BIN_LOG_H_
OLDNEW
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/bin/log_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698