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

Unified Diff: remoting/client/client_logger.h

Issue 6621018: Convert Chromoting plugin logging to appear in client UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments, round 1 Created 9 years, 7 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
Index: remoting/client/client_logger.h
diff --git a/remoting/client/client_logger.h b/remoting/client/client_logger.h
new file mode 100644
index 0000000000000000000000000000000000000000..6e2898886670e0dfa762fa884412601409dda193
--- /dev/null
+++ b/remoting/client/client_logger.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2010 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.
+
+#ifndef REMOTING_CLIENT_CLIENT_LOGGER_H_
+#define REMOTING_CLIENT_CLIENT_LOGGER_H_
+
+#include "base/basictypes.h"
+#include "base/logging.h"
+
+namespace remoting {
+
+class ClientLogger {
+ public:
+ ClientLogger();
+ virtual ~ClientLogger();
+
+ void Log(logging::LogSeverity severity, const char* format, ...);
+ void VLog(int verboselevel, const char* format, ...);
+
+ virtual void va_Log(logging::LogSeverity severity,
+ const char* format, va_list ap);
+ virtual void va_VLog(int verboselevel, const char* format, va_list ap);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ClientLogger);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_CLIENT_CLIENT_LOGGER_H_

Powered by Google App Engine
This is Rietveld 408576698