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

Side by Side Diff: remoting/base/logger.h

Issue 7262015: Conenct Chromoting plugin debug log to JS UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing host logging files Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/base/logger.cc » ('j') | remoting/host/chromoting_host.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium 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 #ifndef REMOTING_CLIENT_CLIENT_LOGGER_H_ 5 #ifndef REMOTING_BASE_LOGGER_H_
6 #define REMOTING_CLIENT_CLIENT_LOGGER_H_ 6 #define REMOTING_BASE_LOGGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 class ClientLogger { 13 extern const char* const log_severity_names[];
dmac 2011/06/26 14:34:44 maybe I missed it. Where are we using these outsid
garykac 2011/06/27 21:24:20 We're not so I made them protected statics (since
14
15 class Logger {
14 public: 16 public:
15 ClientLogger(); 17 Logger();
16 virtual ~ClientLogger(); 18 virtual ~Logger();
17 19
18 void Log(logging::LogSeverity severity, const char* format, ...); 20 void Log(logging::LogSeverity severity, const char* format, ...);
19 void VLog(int verboselevel, const char* format, ...); 21 void VLog(int verboselevel, const char* format, ...);
20 22
21 virtual void va_Log(logging::LogSeverity severity, 23 virtual void va_Log(logging::LogSeverity severity,
22 const char* format, va_list ap); 24 const char* format, va_list ap);
23 virtual void va_VLog(int verboselevel, const char* format, va_list ap); 25 virtual void va_VLog(int verboselevel, const char* format, va_list ap);
24 26
25 private: 27 private:
26 DISALLOW_COPY_AND_ASSIGN(ClientLogger); 28 DISALLOW_COPY_AND_ASSIGN(Logger);
27 }; 29 };
28 30
29 } // namespace remoting 31 } // namespace remoting
30 32
31 #endif // REMOTING_CLIENT_CLIENT_LOGGER_H_ 33 #endif // REMOTING_BASE_LOGGER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/logger.cc » ('j') | remoting/host/chromoting_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698