Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: system_logging.h

Issue 6517001: crash-reporter: Use standard logging and new libchromeos Process code (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crash-reporter.git@master
Patch Set: More comments Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « kernel_collector_test.cc ('k') | system_logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: system_logging.h
diff --git a/system_logging.h b/system_logging.h
deleted file mode 100644
index d1f72a56e6f51d06f62ed4ab70e8b7b32d0380c4..0000000000000000000000000000000000000000
--- a/system_logging.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2010 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.
-
-#ifndef CRASH_REPORTER_SYSTEM_LOGGING_H_
-#define CRASH_REPORTER_SYSTEM_LOGGING_H_
-
-#include <stdarg.h>
-#include <string>
-
-class SystemLogging {
- public:
- virtual void Initialize(const char *ident) = 0;
- virtual void LogInfo(const char *format, ...) = 0;
- virtual void LogWarning(const char *format, ...) = 0;
- virtual void LogError(const char *format, ...) = 0;
- virtual void set_accumulating(bool value) = 0;
- virtual std::string get_accumulator() = 0;
-};
-
-// SystemLoggingImpl implements SystemLogging but adds the
-// capability of accumulating the log to a STL string.
-class SystemLoggingImpl : public SystemLogging {
- public:
- SystemLoggingImpl();
- virtual ~SystemLoggingImpl();
- virtual void Initialize(const char *ident);
- virtual void LogInfo(const char *format, ...);
- virtual void LogWarning(const char *format, ...);
- virtual void LogError(const char *format, ...);
- virtual void set_accumulating(bool value) {
- is_accumulating_ = value;
- }
- virtual std::string get_accumulator() {
- return accumulator_;
- }
- private:
- static std::string identity_;
- std::string accumulator_;
- bool is_accumulating_;
- void LogWithLevel(int level, const char *format,
- va_list arg_list);
-};
-
-#endif // CRASH_REPORTER_SYSTEM_LOGGING_H_
« no previous file with comments | « kernel_collector_test.cc ('k') | system_logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698