summaryrefslogtreecommitdiffstats
path: root/sync/util/logging.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sync/util/logging.cc')
-rw-r--r--sync/util/logging.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/sync/util/logging.cc b/sync/util/logging.cc
new file mode 100644
index 0000000..3d2a269
--- /dev/null
+++ b/sync/util/logging.cc
@@ -0,0 +1,18 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sync/util/logging.h"
+
+#include "base/location.h"
+
+namespace browser_sync {
+
+bool VlogIsOnForLocation(const tracked_objects::Location& from_here,
+ int verbose_level) {
+ return (verbose_level <=
+ logging::GetVlogLevelHelper(
+ from_here.file_name(), ::strlen(from_here.file_name())));
+}
+
+} // namespace browser_sync