Home | History | Annotate | Download | only in base
      1 // Copyright 2015 The Chromium OS Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "base/logging.h"
      6 
      7 namespace logging {
      8 
      9 namespace {
     10 
     11 // The minimum logging level. Anything higher than this will be logged. Set to
     12 // negative values to enable verbose logging.
     13 int g_min_log_level = INFO;
     14 
     15 }  // namespace
     16 
     17 void SetMinLogLevel(int level) { g_min_log_level = level; }
     18 
     19 int GetMinLogLevel() { return g_min_log_level; }
     20 
     21 int GetVlogVerbosity() { return -g_min_log_level; }
     22 
     23 }  // namespace logging
     24