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" |
(...skipping 11 matching lines...) Expand all Loading... |
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, |
| 33 // If this bit is set in our provider enable mask, we will include the fully |
| 34 // formatted log message rather than just the portion used in the invocation |
| 35 // of the LOG family of macros. |
| 36 ENABLE_DETAILED_LOG_MESSAGE = 0x0004, |
33 }; | 37 }; |
34 | 38 |
35 // The message types our log event provider generates. | 39 // The message types our log event provider generates. |
36 // ETW likes user message types to start at 10. | 40 // ETW likes user message types to start at 10. |
37 enum LogMessageTypes { | 41 enum LogMessageTypes { |
38 // A textual only log message, contains a zero-terminated string. | 42 // A textual only log message, contains a zero-terminated string. |
39 LOG_MESSAGE = 10, | 43 LOG_MESSAGE = 10, |
40 // A message with a stack trace, followed by the zero-terminated | 44 // A message with a stack trace, followed by the zero-terminated |
41 // message text. | 45 // message text. |
42 LOG_MESSAGE_WITH_STACKTRACE = 11, | 46 LOG_MESSAGE_WITH_STACKTRACE = 11, |
(...skipping 29 matching lines...) Expand all Loading... |
72 // restored in OnEventsDisabled. | 76 // restored in OnEventsDisabled. |
73 logging::LogSeverity old_log_level_; | 77 logging::LogSeverity old_log_level_; |
74 | 78 |
75 friend struct StaticMemorySingletonTraits<LogEventProvider>; | 79 friend struct StaticMemorySingletonTraits<LogEventProvider>; |
76 DISALLOW_COPY_AND_ASSIGN(LogEventProvider); | 80 DISALLOW_COPY_AND_ASSIGN(LogEventProvider); |
77 }; | 81 }; |
78 | 82 |
79 } // namespace logging | 83 } // namespace logging |
80 | 84 |
81 #endif // BASE_LOGGING_WIN_H_ | 85 #endif // BASE_LOGGING_WIN_H_ |
OLD | NEW |