shill: include meta-data (including file and line) when logging
to syslog

BUG=chromium-os:24539
TEST=manual

manual testing: built shill with and without chromeos::kLogHeader
option. observed that syslog messages included header
(<date>/<timestamp>:<severity>:<file>(<line>) when option was
present. observed that syslog messages did not include header
when option was absent.

Change-Id: Iaa063c54e558d3698a4fef794e0c37a28b2f01fa
Reviewed-on: https://gerrit.chromium.org/gerrit/15696
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Tested-by: mukesh agrawal <quiche@chromium.org>
Commit-Ready: mukesh agrawal <quiche@chromium.org>
diff --git a/shill_main.cc b/shill_main.cc
index 83c01ac..10e38eb 100644
--- a/shill_main.cc
+++ b/shill_main.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
@@ -74,6 +74,7 @@
 void SetupLogging(bool foreground) {
   int log_flags = 0;
   log_flags |= chromeos::kLogToSyslog;
+  log_flags |= chromeos::kLogHeader;
   if (foreground) {
     log_flags |= chromeos::kLogToStderr;
   }