shill: Replace VLOG with SLOG.

This CL replaces all uses of VLOG(level) with SLOG(scope, level) with
the same verbose level and an appropriate scope for each affected
logging statement.

BUG=chromium-os:29641
TEST=Build and run unit tests. Test scope logging with ff_debug.

Change-Id: Ifdcf1faa2a309bcbd9ee369a66179ce9c7f1ad19
Reviewed-on: https://gerrit.chromium.org/gerrit/20629
Commit-Ready: Ben Chan <benchan@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
diff --git a/resolver.cc b/resolver.cc
index 1d1cacf..22632c7 100644
--- a/resolver.cc
+++ b/resolver.cc
@@ -12,6 +12,7 @@
 #include <base/stringprintf.h>
 
 #include "shill/ipconfig.h"
+#include "shill/scope_logger.h"
 
 using base::StringPrintf;
 using std::string;
@@ -32,7 +33,7 @@
 }
 
 bool Resolver::SetDNSFromIPConfig(const IPConfigRefPtr &ipconfig) {
-  VLOG(2) << __func__;
+  SLOG(Resolver, 2) << __func__;
 
   CHECK(!path_.empty());
 
@@ -43,10 +44,10 @@
 
 bool Resolver::SetDNSFromLists(const std::vector<std::string> &dns_servers,
                                const std::vector<std::string> &domain_search) {
-  VLOG(2) << __func__;
+  SLOG(Resolver, 2) << __func__;
 
   if (dns_servers.empty() && domain_search.empty()) {
-    VLOG(2) << "DNS list is empty";
+    SLOG(Resolver, 2) << "DNS list is empty";
     return ClearDNS();
   }
 
@@ -71,14 +72,14 @@
 
   string contents = JoinString(lines, '\n');
 
-  VLOG(2) << "Writing DNS out to " << path_.value();
+  SLOG(Resolver, 2) << "Writing DNS out to " << path_.value();
   int count = file_util::WriteFile(path_, contents.c_str(), contents.size());
 
   return count == static_cast<int>(contents.size());
 }
 
 bool Resolver::ClearDNS() {
-  VLOG(2) << __func__;
+  SLOG(Resolver, 2) << __func__;
 
   CHECK(!path_.empty());