OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMEOS_DEVICE_EVENT_LOG_H_ | 5 #ifndef CHROMEOS_DEVICE_EVENT_LOG_H_ |
6 #define CHROMEOS_DEVICE_EVENT_LOG_H_ | 6 #define CHROMEOS_DEVICE_EVENT_LOG_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Generally prefer the above macros unless |level| is not constant. | 36 // Generally prefer the above macros unless |level| is not constant. |
37 | 37 |
38 #define DEVICE_LOG(type, level) \ | 38 #define DEVICE_LOG(type, level) \ |
39 ::chromeos::device_event_log::internal::DeviceEventLogInstance( \ | 39 ::chromeos::device_event_log::internal::DeviceEventLogInstance( \ |
40 __FILE__, __LINE__, type, level).stream() | 40 __FILE__, __LINE__, type, level).stream() |
41 | 41 |
42 namespace device_event_log { | 42 namespace device_event_log { |
43 | 43 |
44 // Used to specify the type of event. NOTE: Be sure to update LogTypeFromString | 44 // Used to specify the type of event. NOTE: Be sure to update LogTypeFromString |
45 // and GetLogTypeString when adding entries to this enum. | 45 // and GetLogTypeString when adding entries to this enum. Also consider |
| 46 // updating chrome://device-log (see device_log_ui.cc). |
46 enum LogType { | 47 enum LogType { |
47 // Shill / network configuration related events. | 48 // Shill / network configuration related events. |
48 LOG_TYPE_NETWORK, | 49 LOG_TYPE_NETWORK, |
49 // Power manager related events. | 50 // Power manager related events. |
50 LOG_TYPE_POWER, | 51 LOG_TYPE_POWER, |
51 // Login related events. | 52 // Login related events. |
52 LOG_TYPE_LOGIN, | 53 LOG_TYPE_LOGIN, |
53 // Used internally | 54 // Used internally |
54 LOG_TYPE_UNKNOWN | 55 LOG_TYPE_UNKNOWN |
55 }; | 56 }; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogInstance); | 137 DISALLOW_COPY_AND_ASSIGN(DeviceEventLogInstance); |
137 }; | 138 }; |
138 | 139 |
139 } // namespace internal | 140 } // namespace internal |
140 | 141 |
141 } // namespace device_event_log | 142 } // namespace device_event_log |
142 | 143 |
143 } // namespace chromeos | 144 } // namespace chromeos |
144 | 145 |
145 #endif // CHROMEOS_DEVICE_EVENT_LOG_H_ | 146 #endif // CHROMEOS_DEVICE_EVENT_LOG_H_ |
OLD | NEW |