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

Issue 16519003: Define a LoggingSettings struct to use for InitLogging() (Closed)

Created:
7 years, 6 months ago by akalin
Modified:
7 years, 6 months ago
CC:
chromium-reviews, kkania, amit, haitaol1, frankf+watch_chromium.org, dcaiafa+watch_chromium.org, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, grt+watch_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, yfriedman+watch_chromium.org, erikwright+watch_chromium.org, tim (not reviewing), wez+watch_chromium.org, Raghu Simha, sanjeevr, craigdh+watch_chromium.org, feature-media-reviews_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, ilevy-cc_chromium.org, sergeyu+watch_chromium.org, klundberg+watch_chromium.org, jochen+watch_chromium.org, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, tfarina, sail+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, robertshield, bulach+watch_chromium.org, alexeypa+watch_chromium.org
Visibility:
Public.

Description

Define a LoggingSettings struct to use for InitLogging() Update all callers of InitLogging() to use LoggingSettings, only setting fields that need a non-default value. Turn LoggingDestination enum into a bit field and define add LOG_DEFAULT and LOG_ALL constants. Fix erroneous comment saying that the default was to not lock the log file. BUG=247594 TBR=brettw@chromium.org, cpu@chromium.org, gene@chromium.org, jam@chromium.org, rch@chromium.org, scherkus@chromium.org, sergeyu@chromium.org, sky@chromium.org, tkent@chromium.org, yfriedman@chromium.org, zea@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207920

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : self-review 2 #

Patch Set 4 : Fix compile error #

Patch Set 5 : Fix compile error, include logging_setting.hs #

Patch Set 6 : Fix new file #

Patch Set 7 : Address comments #

Total comments: 6

Patch Set 8 : Address comments #

Total comments: 8

Patch Set 9 : Rebase #

Patch Set 10 : Fix compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -309 lines) Patch
M base/logging.h View 1 2 3 4 5 6 7 8 9 4 chunks +52 lines, -30 lines 0 comments Download
M base/logging.cc View 1 2 3 4 5 6 7 7 chunks +23 lines, -32 lines 0 comments Download
M base/test/test_suite.cc View 5 6 1 chunk +5 lines, -6 lines 0 comments Download
M base/test/test_support_android.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/common/logging_chrome.cc View 1 2 3 4 5 6 5 chunks +16 lines, -17 lines 0 comments Download
M chrome/installer/gcapi/gcapi_dll.cc View 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/installer/tools/validate_installation_main.cc View 5 6 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/installer/util/logging_installer.cc View 1 2 3 4 5 6 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/test/chromedriver/server/chromedriver_server.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/test/webdriver/webdriver_logging.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/tools/crash_service/main.cc View 1 5 6 1 chunk +4 lines, -6 lines 0 comments Download
M chrome_frame/chrome_tab.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M chrome_frame/crash_reporting/minidump_test.cc View 5 6 1 chunk +5 lines, -6 lines 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -6 lines 0 comments Download
M cloud_print/gcp20/prototype/gcp20_device.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -5 lines 0 comments Download
M cloud_print/service/win/cloud_print_service.cc View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 2 3 4 5 6 1 chunk +4 lines, -6 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 3 4 5 6 1 chunk +5 lines, -6 lines 0 comments Download
M content/shell/app/shell_main_delegate.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -6 lines 0 comments Download
M courgette/courgette_tool.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -6 lines 0 comments Download
M jingle/glue/logging_unittest.cc View 5 6 1 chunk +6 lines, -3 lines 0 comments Download
M media/tools/media_bench/media_bench.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M media/tools/player_x11/player_x11.cc View 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M net/disk_cache/stress_cache.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M net/tools/flip_server/flip_config.cc View 5 6 1 chunk +1 line, -1 line 0 comments Download
M net/tools/flip_server/flip_in_mem_edsm_server.cc View 1 2 3 4 5 6 3 chunks +10 lines, -13 lines 0 comments Download
M net/tools/get_server_time/get_server_time.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M net/tools/net_watcher/net_watcher.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M net/tools/testserver/run_testserver.cc View 1 2 3 4 5 6 1 chunk +4 lines, -6 lines 0 comments Download
M net/tools/tld_cleanup/tld_cleanup.cc View 1 5 6 2 chunks +7 lines, -8 lines 0 comments Download
M ppapi/proxy/plugin_main_nacl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M remoting/host/logging_posix.cc View 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M remoting/host/logging_win.cc View 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M sync/tools/sync_client.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M sync/tools/sync_listen_notifications.cc View 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M sync/tools/testserver/run_sync_testserver.cc View 1 2 3 4 5 6 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/libjingle/overrides/initialize_module.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -6 lines 0 comments Download
M tools/android/forwarder2/daemon.cc View 1 2 3 4 5 6 1 chunk +9 lines, -7 lines 0 comments Download
M tools/set_default_handler/set_default_handler_main.cc View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M ui/views/examples/content_client/examples_main_delegate.cc View 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M webkit/support/webkit_support.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -9 lines 0 comments Download
M win8/metro_driver/metro_driver.cc View 5 6 1 chunk +3 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
akalin
+darin for review You don't have to look at all the files outside of base/ ...
7 years, 6 months ago (2013-06-07 06:48:30 UTC) #1
akalin
ping!
7 years, 6 months ago (2013-06-10 18:16:59 UTC) #2
darin (slow to review)
Why extract these bits out into a separate file? Why not just define them at ...
7 years, 6 months ago (2013-06-11 23:19:02 UTC) #3
darin (slow to review)
Why extract these bits out into a separate file? Why not just define them at ...
7 years, 6 months ago (2013-06-11 23:19:04 UTC) #4
akalin
On 2013/06/11 23:19:04, darin wrote: > Why extract these bits out into a separate file? ...
7 years, 6 months ago (2013-06-11 23:25:39 UTC) #5
akalin
ping!
7 years, 6 months ago (2013-06-12 21:28:05 UTC) #6
brettw
I guess I don't see much advantage. We've basically added params like once ever so ...
7 years, 6 months ago (2013-06-12 23:50:25 UTC) #7
brettw
To clarify, I don't see the point of the separate structure but if you like ...
7 years, 6 months ago (2013-06-13 03:53:33 UTC) #8
akalin
On 2013/06/13 03:53:33, brettw wrote: > To clarify, I don't see the point of the ...
7 years, 6 months ago (2013-06-14 00:51:51 UTC) #9
akalin
ping!
7 years, 6 months ago (2013-06-17 17:51:15 UTC) #10
brettw
Lgtm but I have some nontrivial suggestions. https://codereview.chromium.org/16519003/diff/36001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/16519003/diff/36001/base/logging.cc#newcode86 base/logging.cc:86: int g_min_log_level ...
7 years, 6 months ago (2013-06-19 18:10:12 UTC) #11
akalin
https://codereview.chromium.org/16519003/diff/36001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/16519003/diff/36001/base/logging.cc#newcode86 base/logging.cc:86: int g_min_log_level = 0; On 2013/06/19 18:10:13, brettw wrote: ...
7 years, 6 months ago (2013-06-19 19:59:17 UTC) #12
akalin
Okay, it's OWNERS time! Please double-check that the right LoggingSettings are used for your executable ...
7 years, 6 months ago (2013-06-19 21:41:30 UTC) #13
tkent
webkit/support/ lgtm
7 years, 6 months ago (2013-06-19 21:45:18 UTC) #14
Nicolas Zea
sync LGTM
7 years, 6 months ago (2013-06-19 21:52:07 UTC) #15
Sergey Ulanov
lgtm
7 years, 6 months ago (2013-06-19 21:52:30 UTC) #16
gene
cloudprint lgtm
7 years, 6 months ago (2013-06-19 22:05:55 UTC) #17
Ryan Hamilton
net/ lgtm
7 years, 6 months ago (2013-06-19 22:38:16 UTC) #18
Yaron
tools/android lgtm
7 years, 6 months ago (2013-06-19 22:47:26 UTC) #19
scherkus (not reviewing)
media lgtm
7 years, 6 months ago (2013-06-19 22:52:56 UTC) #20
brettw
lgtm
7 years, 6 months ago (2013-06-19 23:00:56 UTC) #21
sky
https://codereview.chromium.org/16519003/diff/43002/chrome/installer/gcapi/gcapi_dll.cc File chrome/installer/gcapi/gcapi_dll.cc (left): https://codereview.chromium.org/16519003/diff/43002/chrome/installer/gcapi/gcapi_dll.cc#oldcode29 chrome/installer/gcapi/gcapi_dll.cc:29: logging::DELETE_OLD_LOG_FILE, Doesn't your change lose DELETE_OLD_LOG_FILE? https://codereview.chromium.org/16519003/diff/43002/chrome/test/chromedriver/server/chromedriver_server.cc File chrome/test/chromedriver/server/chromedriver_server.cc ...
7 years, 6 months ago (2013-06-19 23:22:27 UTC) #22
jam
lgtm
7 years, 6 months ago (2013-06-20 00:45:55 UTC) #23
akalin
https://codereview.chromium.org/16519003/diff/43002/chrome/installer/gcapi/gcapi_dll.cc File chrome/installer/gcapi/gcapi_dll.cc (left): https://codereview.chromium.org/16519003/diff/43002/chrome/installer/gcapi/gcapi_dll.cc#oldcode29 chrome/installer/gcapi/gcapi_dll.cc:29: logging::DELETE_OLD_LOG_FILE, On 2013/06/19 23:22:28, sky wrote: > Doesn't your ...
7 years, 6 months ago (2013-06-20 07:35:09 UTC) #24
sky
LGTM
7 years, 6 months ago (2013-06-20 17:34:50 UTC) #25
akalin
On 2013/06/20 17:34:50, sky wrote: > LGTM tommi, cpu, ping!
7 years, 6 months ago (2013-06-20 17:57:08 UTC) #26
cpu_(ooo_6.6-7.5)
lgtm
7 years, 6 months ago (2013-06-20 22:42:47 UTC) #27
akalin
TBRing tommi
7 years, 6 months ago (2013-06-21 18:51:11 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/16519003/71001
7 years, 6 months ago (2013-06-21 18:52:52 UTC) #29
akalin
7 years, 6 months ago (2013-06-21 21:15:56 UTC) #30
Message was sent while issue was closed.
Committed patchset #10 manually as r207920 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698