OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdarg.h> | 5 #include <stdarg.h> |
6 #include <syslog.h> | 6 #include <syslog.h> |
7 | 7 |
8 #include "crash/system_logging.h" | 8 #include "crash-reporter/system_logging.h" |
9 | 9 |
10 std::string SystemLoggingImpl::identity_; | 10 std::string SystemLoggingImpl::identity_; |
11 | 11 |
12 SystemLoggingImpl::SystemLoggingImpl() { | 12 SystemLoggingImpl::SystemLoggingImpl() { |
13 } | 13 } |
14 | 14 |
15 SystemLoggingImpl::~SystemLoggingImpl() { | 15 SystemLoggingImpl::~SystemLoggingImpl() { |
16 } | 16 } |
17 | 17 |
18 void SystemLoggingImpl::Initialize(const char *ident) { | 18 void SystemLoggingImpl::Initialize(const char *ident) { |
(...skipping 16 matching lines...) Expand all Loading... |
35 vsyslog(LOG_WARNING, format, vl); | 35 vsyslog(LOG_WARNING, format, vl); |
36 va_end(vl); | 36 va_end(vl); |
37 } | 37 } |
38 | 38 |
39 void SystemLoggingImpl::LogError(const char *format, ...) { | 39 void SystemLoggingImpl::LogError(const char *format, ...) { |
40 va_list vl; | 40 va_list vl; |
41 va_start(vl, format); | 41 va_start(vl, format); |
42 vsyslog(LOG_ERR, format, vl); | 42 vsyslog(LOG_ERR, format, vl); |
43 va_end(vl); | 43 va_end(vl); |
44 } | 44 } |
OLD | NEW |