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

Issue 4164011: Integrate ETW with VLOG logging. (Closed)

Created:
10 years, 1 month ago by Sigurður Ásgeirsson
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Integrate ETW with VLOG logging. This change extends the log severities into the negative for VLOG verbosities. It also keeps track of file/line information and passes it to any registered log handler. The log level is naturally controlled by translating ETW log levels to the severities. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65062

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Total comments: 11

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -83 lines) Patch
M base/logging.h View 1 2 3 4 5 6 7 4 chunks +26 lines, -6 lines 0 comments Download
M base/logging.cc View 1 2 3 4 5 6 7 5 chunks +22 lines, -10 lines 0 comments Download
M base/logging_win.h View 1 2 3 4 5 6 3 chunks +13 lines, -1 line 0 comments Download
M base/logging_win.cc View 1 2 3 4 5 6 3 chunks +60 lines, -42 lines 0 comments Download
MM base/vlog.h View 1 2 3 4 5 6 2 chunks +11 lines, -3 lines 0 comments Download
MM base/vlog.cc View 4 chunks +22 lines, -7 lines 0 comments Download
M base/vlog_unittest.cc View 3 chunks +11 lines, -8 lines 0 comments Download
M ceee/testing/utils/test_utils.h View 1 chunk +2 lines, -1 line 0 comments Download
M ceee/testing/utils/test_utils.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/logging_chrome.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Sigurður Ásgeirsson
Hi Brett, Fred, please check this out. This change goes most of the way toward ...
10 years, 1 month ago (2010-10-29 20:44:02 UTC) #1
brettw
I realized I don't know a lot about this ETW stuff and I'm told Ricardo ...
10 years, 1 month ago (2010-10-29 21:28:20 UTC) #2
akalin
http://codereview.chromium.org/4164011/diff/9001/10001 File base/logging.cc (right): http://codereview.chromium.org/4164011/diff/9001/10001#newcode395 base/logging.cc:395: if (g_vlog_info == NULL) is this necessary since you're ...
10 years, 1 month ago (2010-11-01 20:48:32 UTC) #3
rvargas (doing something else)
So the idea is that the user will add a vlog level and module pattern ...
10 years, 1 month ago (2010-11-01 21:19:01 UTC) #4
brettw
On Mon, Nov 1, 2010 at 2:19 PM, <rvargas@chromium.org> wrote: > So the idea is ...
10 years, 1 month ago (2010-11-01 21:24:55 UTC) #5
rvargas (doing something else)
(take number 2) So the idea is that the user will add a vlog level ...
10 years, 1 month ago (2010-11-01 21:38:29 UTC) #6
Sigurður Ásgeirsson
On Mon, Nov 1, 2010 at 5:38 PM, <rvargas@chromium.org> wrote: > (take number 2) > ...
10 years, 1 month ago (2010-11-02 00:47:18 UTC) #7
Sigurður Ásgeirsson
On Mon, Nov 1, 2010 at 8:47 PM, Sigurður Ásgeirsson <siggi@chromium.org>wrote: > On Mon, Nov ...
10 years, 1 month ago (2010-11-02 00:48:48 UTC) #8
Jói
> >> Well, the idea here is to allow cranking the VLOG level up or ...
10 years, 1 month ago (2010-11-02 01:04:30 UTC) #9
rvargas (doing something else)
> I suppose I could control VLOG verbosity by treating the VLOG levels as log ...
10 years, 1 month ago (2010-11-02 01:37:54 UTC) #10
akalin
I also think that treating verbose logging levels as below INFO is the most parsimonious ...
10 years, 1 month ago (2010-11-02 01:39:54 UTC) #11
tommi (sloooow) - chröme
I took a quick look. +1 on usefulness for CF and likely other areas of ...
10 years, 1 month ago (2010-11-02 01:45:28 UTC) #12
brettw
I'd like to get a better high-level understanding of what's going on here. Who uses ...
10 years, 1 month ago (2010-11-02 04:31:53 UTC) #13
Sigurður Ásgeirsson
On Tue, Nov 2, 2010 at 12:31 AM, <brettw@chromium.org> wrote: > I'd like to get ...
10 years, 1 month ago (2010-11-02 12:56:10 UTC) #14
Jói
+1 to trying out Sawbuck if you're developing Chrome on Windows - it's awesome. 2010/11/2 ...
10 years, 1 month ago (2010-11-02 12:58:25 UTC) #15
amit
+1 for ETW (OS supported, low overhead) way of logging and sawbuck is awesome. Siggi, ...
10 years, 1 month ago (2010-11-02 16:49:10 UTC) #16
Sigurður Ásgeirsson
On Tue, Nov 2, 2010 at 12:48 PM, Amit Joshi <amit@chromium.org> wrote: > +1 for ...
10 years, 1 month ago (2010-11-02 17:36:12 UTC) #17
Sigurður Ásgeirsson
Hi guys, I reworked the change to extend the log severities into the negative for ...
10 years, 1 month ago (2010-11-02 21:14:47 UTC) #18
rvargas (doing something else)
http://codereview.chromium.org/4164011/diff/38001/39002 File base/logging.h (right): http://codereview.chromium.org/4164011/diff/38001/39002#newcode278 base/logging.h:278: const LogSeverity LOG_NUM_SEVERITIES = 5; Maybe comment that this ...
10 years, 1 month ago (2010-11-02 22:59:23 UTC) #19
Sigurður Ásgeirsson
Hi guys, This change: 1. switches to the new handler signature. 2. adds another enable ...
10 years, 1 month ago (2010-11-03 20:50:13 UTC) #20
akalin
I was discussing with siggi re. the interaction with vloglevel and minloglevel. We came to ...
10 years, 1 month ago (2010-11-03 21:03:18 UTC) #21
akalin
Further discussion with siggi@, I'll make the changes described below myself, but this CL can ...
10 years, 1 month ago (2010-11-03 21:06:21 UTC) #22
akalin
Actually, one more thing. http://codereview.chromium.org/4164011/diff/61001/62001 File base/logging.cc (right): http://codereview.chromium.org/4164011/diff/61001/62001#newcode386 base/logging.cc:386: min_log_level = level; I think ...
10 years, 1 month ago (2010-11-03 21:11:59 UTC) #23
Sigurður Ásgeirsson
Thanks - I need to do a little more testing, but otherwise I think this ...
10 years, 1 month ago (2010-11-03 21:12:02 UTC) #24
Sigurður Ásgeirsson
http://codereview.chromium.org/4164011/diff/61001/62001 File base/logging.cc (right): http://codereview.chromium.org/4164011/diff/61001/62001#newcode386 base/logging.cc:386: min_log_level = level; On 2010/11/03 21:11:59, akalin wrote: > ...
10 years, 1 month ago (2010-11-03 21:24:06 UTC) #25
akalin
LGTM On 2010/11/03 21:24:06, Ruðrugis wrote: > http://codereview.chromium.org/4164011/diff/61001/62001 > File base/logging.cc (right): > > http://codereview.chromium.org/4164011/diff/61001/62001#newcode386 ...
10 years, 1 month ago (2010-11-03 21:27:46 UTC) #26
rvargas (doing something else)
LGTM
10 years, 1 month ago (2010-11-03 21:44:48 UTC) #27
rvargas (doing something else)
http://codereview.chromium.org/4164011/diff/38001/39003 File base/logging_win.cc (right): http://codereview.chromium.org/4164011/diff/38001/39003#newcode72 base/logging_win.cc:72: event.SetField(0, sizeof(depth), &depth); > Fields are generally ordered this ...
10 years, 1 month ago (2010-11-04 01:08:48 UTC) #28
Sigurður Ásgeirsson
My apologies, I missed vlog.cc and the unittest from the previous upload. Please take one ...
10 years, 1 month ago (2010-11-04 13:33:05 UTC) #29
Sigurður Ásgeirsson
On 2010/11/04 13:33:05, Ruðrugis wrote: > My apologies, I missed vlog.cc and the unittest from ...
10 years, 1 month ago (2010-11-04 14:53:54 UTC) #30
tommi (sloooow) - chröme
lgtm
10 years, 1 month ago (2010-11-04 15:50:06 UTC) #31
Sigurður Ásgeirsson
10 years, 1 month ago (2010-11-04 15:54:29 UTC) #32
Thanks, submitting.

On Thu, Nov 4, 2010 at 11:50 AM, <tommi@chromium.org> wrote:

> lgtm
>
>
> http://codereview.chromium.org/4164011/show
>

Powered by Google App Engine
This is Rietveld 408576698