[M120 Migration] Implement ewk_view_is_video_playing api
[platform/framework/web/chromium-efl.git] / build / config / logging.gni
1 # Copyright 2019 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/buildflag_header.gni")
6 import("//build/config/chromeos/ui_mode.gni")
7 import("//build/config/dcheck_always_on.gni")
8
9 declare_args() {
10   # Use LogErrorNotReached() for NOTREACHED().
11   enable_log_error_not_reached =
12       is_chromeos_ash && !(is_debug || dcheck_always_on)
13   enable_stack_trace_line_numbers = false
14
15   # Use runtime vlog everywhere except for ash-chrome.
16   # When `use_runtime_vlog` is true,
17   #   command line switch `--vmodule=xxx` or `--v=x` could be used to
18   #   control vlog level at runtime.
19   # when `use_runtime_volog` is false,
20   #   verbose log level is controlled by `ENABLE_VLOG_LEVEL` macro. VLOG(n)
21   #   is kept and generate output if `n` is less than or equal to the vlog
22   #   level defined by the macro.
23   #   Command line switch `--vmodule=xxx`, or `--v=x` would have no effect.
24   #
25   # Runtime vlog is used everywhere except on ash-chrome.
26   # Ash-chrome has a few vmodule patterns that need to be used indefinitely
27   # to investigate problems from logs in feedback reports. These vmodule
28   # patterns are using too much cpu cycles (see http://crbug/489441). Turning
29   # off runtime vlog and using build time vlog would avoid paying that cpu tax
30   # and have a nice side effect of a smaller production binary.
31   use_runtime_vlog = !is_chromeos_ash
32 }