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

Issue 2530163002: Make the name of the event source for SYSLOG configurable. (Closed)

Created:
4 years ago by pastarmovj
Modified:
4 years ago
Reviewers:
Nico, grt (UTC plus 2)
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the name of the event source for SYSLOG configurable. In order to allow this code to properly operate for all Chromium and Chrome flavors (e.g. Stable, Beta, Canary etc.) it is important to allow for different source names for the Event Logger. The default behavior of SYSLOG now is equivalent to a LOG unless SetEventSourceName is called at which point the function can start logging to the Event Log as well. For Branded Chrome build the event source stays Chrome for the Stable channel and will have the proper appendix for the various other channels whereas for non-branded build it will be Chromium. BUG=668397 TEST=none Committed: https://crrev.com/a3eac43eeb3dc4bb862e6e27e9d12f7250428804 Cr-Commit-Position: refs/heads/master@{#436994}

Patch Set 1 #

Patch Set 2 : Fix BUILD.gn #

Total comments: 4

Patch Set 3 : Change to per-channel naming. #

Total comments: 8

Patch Set 4 : Fix includes and nits. #

Total comments: 1

Patch Set 5 : Clean up. #

Patch Set 6 : Rebase on ToT. #

Patch Set 7 : Fix unit test. #

Total comments: 4

Patch Set 8 : Add not reached. #

Patch Set 9 : Remove NOTREACHED and log suffix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M base/syslog_logging.h View 1 chunk +5 lines, -0 lines 0 comments Download
M base/syslog_logging.cc View 1 2 3 4 5 6 7 8 4 chunks +24 lines, -3 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/logging_chrome.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/install_static/install_details.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/install_static/install_modes.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/install_static/product_install_details.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/install_static/product_install_details_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 40 (18 generated)
pastarmovj
Hi Greg, please review the way I pull the app name from install_static and if ...
4 years ago (2016-11-25 14:26:02 UTC) #2
grt (UTC plus 2)
https://codereview.chromium.org/2530163002/diff/20001/base/syslog_logging.cc File base/syslog_logging.cc (right): https://codereview.chromium.org/2530163002/diff/20001/base/syslog_logging.cc#newcode25 base/syslog_logging.cc:25: std::string g_event_source_name; non-POD globals are banned (https://google.github.io/styleguide/cppguide.html#Static_and_Global_Variables). you could ...
4 years ago (2016-11-25 15:25:35 UTC) #3
pastarmovj
https://codereview.chromium.org/2530163002/diff/20001/base/syslog_logging.cc File base/syslog_logging.cc (right): https://codereview.chromium.org/2530163002/diff/20001/base/syslog_logging.cc#newcode25 base/syslog_logging.cc:25: std::string g_event_source_name; On 2016/11/25 15:25:34, grt (UTC plus 1) ...
4 years ago (2016-11-28 12:23:03 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/2530163002/diff/40001/base/syslog_logging.cc File base/syslog_logging.cc (right): https://codereview.chromium.org/2530163002/diff/40001/base/syslog_logging.cc#newcode29 base/syslog_logging.cc:29: DCHECK(g_event_source_name == nullptr); nit: DCHECK_EQ(g_event_source_name, nullptr); https://codereview.chromium.org/2530163002/diff/40001/base/syslog_logging.cc#newcode56 base/syslog_logging.cc:56: nit: ...
4 years ago (2016-11-28 12:49:52 UTC) #5
pastarmovj
ptal. Thanks! https://codereview.chromium.org/2530163002/diff/40001/base/syslog_logging.cc File base/syslog_logging.cc (right): https://codereview.chromium.org/2530163002/diff/40001/base/syslog_logging.cc#newcode29 base/syslog_logging.cc:29: DCHECK(g_event_source_name == nullptr); On 2016/11/28 12:49:52, grt ...
4 years ago (2016-11-28 15:53:17 UTC) #6
grt (UTC plus 2)
lgtm with a nit. thanks! https://codereview.chromium.org/2530163002/diff/60001/chrome/install_static/install_details.h File chrome/install_static/install_details.h (right): https://codereview.chromium.org/2530163002/diff/60001/chrome/install_static/install_details.h#newcode18 chrome/install_static/install_details.h:18: // Re-declare the constants ...
4 years ago (2016-11-29 12:40:25 UTC) #7
pastarmovj
Thanks Greg! Nico, please review the CL for OWNER approval. For context the plan is ...
4 years ago (2016-11-29 12:52:13 UTC) #9
Nico
That's an explicit non-goal in general. tried understanding what you want to do, but the ...
4 years ago (2016-11-29 16:20:18 UTC) #18
grt (UTC plus 2)
On 2016/11/29 16:20:18, Nico wrote: > That's an explicit non-goal in general. tried understanding what ...
4 years ago (2016-11-29 19:40:35 UTC) #19
pastarmovj
What Greg said, I was a little vague about what I wanted to say there ...
4 years ago (2016-11-29 21:56:18 UTC) #21
pastarmovj
On 2016/11/29 21:56:18, pastarmovj wrote: > What Greg said, I was a little vague about ...
4 years ago (2016-12-01 10:13:25 UTC) #22
Nico
Thanks, doing this for side-by-side makes sense to me. The bug this links to also ...
4 years ago (2016-12-02 03:08:41 UTC) #23
pastarmovj
I changes the description a bit to not lie for 100% equivalency with LOG, and ...
4 years ago (2016-12-02 19:30:59 UTC) #25
Nico
Thanks. https://codereview.chromium.org/2530163002/diff/120001/base/syslog_logging.cc File base/syslog_logging.cc (right): https://codereview.chromium.org/2530163002/diff/120001/base/syslog_logging.cc#newcode45 base/syslog_logging.cc:45: // degrade gracefully to regular LOG with an ...
4 years ago (2016-12-02 20:28:58 UTC) #26
pastarmovj
https://codereview.chromium.org/2530163002/diff/120001/base/syslog_logging.cc File base/syslog_logging.cc (right): https://codereview.chromium.org/2530163002/diff/120001/base/syslog_logging.cc#newcode45 base/syslog_logging.cc:45: // degrade gracefully to regular LOG with an extra ...
4 years ago (2016-12-05 08:40:10 UTC) #27
pastarmovj
Gentle ping.
4 years ago (2016-12-07 06:57:36 UTC) #29
Nico
"""Thanks, doing this for side-by-side makes sense to me. The bug this links to also ...
4 years ago (2016-12-07 15:55:33 UTC) #30
pastarmovj
On 2016/12/07 15:55:33, Nico wrote: > """Thanks, doing this for side-by-side makes sense to me. ...
4 years ago (2016-12-07 16:17:31 UTC) #31
Nico
lgtm
4 years ago (2016-12-07 16:18:22 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2530163002/160001
4 years ago (2016-12-07 16:32:38 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-12-07 17:39:23 UTC) #38
commit-bot: I haz the power
4 years ago (2016-12-07 17:41:47 UTC) #40
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a3eac43eeb3dc4bb862e6e27e9d12f7250428804
Cr-Commit-Position: refs/heads/master@{#436994}

Powered by Google App Engine
This is Rietveld 408576698