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

Issue 11312242: Revised CL for customisable logging (replacing printfs). (Closed)

Created:
8 years, 1 month ago by gram
Modified:
8 years, 1 month ago
Reviewers:
vsm, siva, Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Revised CL for customisable logging (replacing printfs). Committed: https://code.google.com/p/dart/source/detail?r=15096

Patch Set 1 #

Total comments: 52

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -141 lines) Patch
M runtime/bin/bin.gypi View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download
M runtime/bin/dbg_connection.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M runtime/bin/dbg_connection_android.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/dbg_connection_linux.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/dbg_connection_macos.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M runtime/bin/directory_win.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M runtime/bin/eventhandler_android.cc View 1 2 3 3 chunks +12 lines, -11 lines 0 comments Download
M runtime/bin/eventhandler_linux.cc View 1 2 3 3 chunks +12 lines, -11 lines 0 comments Download
M runtime/bin/eventhandler_macos.cc View 1 2 3 2 chunks +11 lines, -9 lines 0 comments Download
M runtime/bin/eventhandler_win.cc View 1 2 3 13 chunks +13 lines, -12 lines 0 comments Download
M runtime/bin/file_android.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/file_linux.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/file_macos.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/file_win.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 3 6 chunks +10 lines, -10 lines 0 comments Download
A runtime/bin/log.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
A runtime/bin/log_android.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
A runtime/bin/log_linux.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A runtime/bin/log_macos.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
A runtime/bin/log_win.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M runtime/bin/main.cc View 1 2 3 6 chunks +9 lines, -8 lines 0 comments Download
M runtime/bin/platform_win.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/process_android.cc View 1 2 3 7 chunks +9 lines, -9 lines 0 comments Download
M runtime/bin/process_linux.cc View 1 2 3 8 chunks +8 lines, -7 lines 0 comments Download
M runtime/bin/process_macos.cc View 1 2 3 7 chunks +9 lines, -9 lines 0 comments Download
M runtime/bin/process_win.cc View 1 2 3 9 chunks +10 lines, -9 lines 0 comments Download
M runtime/bin/socket_android.cc View 1 2 3 7 chunks +10 lines, -9 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 2 3 7 chunks +9 lines, -8 lines 0 comments Download
M runtime/bin/socket_macos.cc View 1 2 3 7 chunks +9 lines, -8 lines 0 comments Download
M runtime/bin/socket_win.cc View 1 2 3 5 chunks +5 lines, -4 lines 0 comments Download
M runtime/bin/utils_win.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
gram
Changes from before: - the wrappers are added to a new class in log* - ...
8 years, 1 month ago (2012-11-14 18:29:05 UTC) #1
Ivan Posva
I would like to know Siva's opinion as well, but this is certainly better in ...
8 years, 1 month ago (2012-11-15 07:43:16 UTC) #2
siva
I am fine with the introduction of the Log class to abstract out the print ...
8 years, 1 month ago (2012-11-15 18:46:48 UTC) #3
Ivan Posva
After thinking about this a bit further, I do like the fact that printing has ...
8 years, 1 month ago (2012-11-15 18:59:44 UTC) #4
gram
PTAL, thanks! https://codereview.chromium.org/11312242/diff/1/runtime/bin/dbg_connection_android.cc File runtime/bin/dbg_connection_android.cc (right): https://codereview.chromium.org/11312242/diff/1/runtime/bin/dbg_connection_android.cc#newcode10 runtime/bin/dbg_connection_android.cc:10: #include "bin/log.h" On 2012/11/15 18:46:48, siva wrote: ...
8 years, 1 month ago (2012-11-15 21:16:50 UTC) #5
Ivan Posva
LGTM with nitpicking comments. Thanks for the cleanups. -Ivan https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/directory_win.cc File runtime/bin/directory_win.cc (left): https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/directory_win.cc#oldcode6 runtime/bin/directory_win.cc:6: ...
8 years, 1 month ago (2012-11-17 01:13:42 UTC) #6
gram
8 years, 1 month ago (2012-11-19 17:38:56 UTC) #7
Done, thanks! This will be very helpful for us.

https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/direct...
File runtime/bin/directory_win.cc (left):

https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/direct...
runtime/bin/directory_win.cc:6: 
On 2012/11/17 01:13:42, Ivan Posva wrote:
> Please leave the empty line.

Done.

https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/platfo...
File runtime/bin/platform_win.cc (right):

https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/platfo...
runtime/bin/platform_win.cc:5: #include "bin/log.h"
On 2012/11/17 01:13:42, Ivan Posva wrote:
> Please move this under "bin/platform.h".

Done.

https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/socket...
File runtime/bin/socket_android.cc (right):

https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/socket...
runtime/bin/socket_android.cc:13: #include "bin/socket.h"
On 2012/11/17 01:13:42, Ivan Posva wrote:
> While you are in this code, can you please move this to be the first include?
> Thanks!

Done.

https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/utils_...
File runtime/bin/utils_win.cc (right):

https://chromiumcodereview.appspot.com/11312242/diff/27001/runtime/bin/utils_...
runtime/bin/utils_win.cc:8: #include "bin/utils.h"
On 2012/11/17 01:13:42, Ivan Posva wrote:
> ditto

Done.

Powered by Google App Engine
This is Rietveld 408576698