OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_LOGGING_WIN_H_ | 5 #ifndef BASE_LOGGING_WIN_H_ |
6 #define BASE_LOGGING_WIN_H_ | 6 #define BASE_LOGGING_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/base_export.h" | 11 #include "base/base_export.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/win/event_trace_provider.h" | 13 #include "base/win/event_trace_provider.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 | 15 |
16 template <typename Type> | 16 template <typename Type> |
17 struct StaticMemorySingletonTraits; | 17 struct StaticMemorySingletonTraits; |
18 | 18 |
19 namespace logging { | 19 namespace logging { |
20 | 20 |
21 // Event ID for the log messages we generate. | 21 // Event ID for the log messages we generate. |
22 extern const GUID kLogEventId; | 22 BASE_EXPORT extern const GUID kLogEventId; |
23 | 23 |
24 // Feature enable mask for LogEventProvider. | 24 // Feature enable mask for LogEventProvider. |
25 enum LogEnableMask { | 25 enum LogEnableMask { |
26 // If this bit is set in our provider enable mask, we will include | 26 // If this bit is set in our provider enable mask, we will include |
27 // a stack trace with every log message. | 27 // a stack trace with every log message. |
28 ENABLE_STACK_TRACE_CAPTURE = 0x0001, | 28 ENABLE_STACK_TRACE_CAPTURE = 0x0001, |
29 // If this bit is set in our provider enable mask, the provider will log | 29 // If this bit is set in our provider enable mask, the provider will log |
30 // a LOG message with only the textual content of the message, and no | 30 // a LOG message with only the textual content of the message, and no |
31 // stack trace. | 31 // stack trace. |
32 ENABLE_LOG_MESSAGE_ONLY = 0x0002, | 32 ENABLE_LOG_MESSAGE_ONLY = 0x0002, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // restored in OnEventsDisabled. | 72 // restored in OnEventsDisabled. |
73 logging::LogSeverity old_log_level_; | 73 logging::LogSeverity old_log_level_; |
74 | 74 |
75 friend struct StaticMemorySingletonTraits<LogEventProvider>; | 75 friend struct StaticMemorySingletonTraits<LogEventProvider>; |
76 DISALLOW_COPY_AND_ASSIGN(LogEventProvider); | 76 DISALLOW_COPY_AND_ASSIGN(LogEventProvider); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace logging | 79 } // namespace logging |
80 | 80 |
81 #endif // BASE_LOGGING_WIN_H_ | 81 #endif // BASE_LOGGING_WIN_H_ |
OLD | NEW |