OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 // Windows and _ERRNO on POSIX. | 36 // Windows and _ERRNO on POSIX. |
37 // (The above three also all have _EX versions that let you specify the error | 37 // (The above three also all have _EX versions that let you specify the error |
38 // code, rather than using the last one.) | 38 // code, rather than using the last one.) |
39 // LOG_E(sev, ctx, err, ...) logs a detailed error interpreted using the | 39 // LOG_E(sev, ctx, err, ...) logs a detailed error interpreted using the |
40 // specified context. | 40 // specified context. |
41 // LOG_CHECK_LEVEL(sev) (and LOG_CHECK_LEVEL_V(sev)) can be used as a test | 41 // LOG_CHECK_LEVEL(sev) (and LOG_CHECK_LEVEL_V(sev)) can be used as a test |
42 // before performing expensive or sensitive operations whose sole purpose is | 42 // before performing expensive or sensitive operations whose sole purpose is |
43 // to output logging data at the desired level. | 43 // to output logging data at the desired level. |
44 // Lastly, PLOG(sev, err) is an alias for LOG_ERR_EX. | 44 // Lastly, PLOG(sev, err) is an alias for LOG_ERR_EX. |
45 | 45 |
46 #ifndef WEBRTC_BASE_LOGGING_H_ | 46 #ifndef WEBRTC_RTC_BASE_LOGGING_H_ |
47 #define WEBRTC_BASE_LOGGING_H_ | 47 #define WEBRTC_RTC_BASE_LOGGING_H_ |
48 | 48 |
49 #include <errno.h> | 49 #include <errno.h> |
50 | 50 |
51 #include <list> | 51 #include <list> |
52 #include <sstream> | 52 #include <sstream> |
53 #include <string> | 53 #include <string> |
54 #include <utility> | 54 #include <utility> |
55 | 55 |
56 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) | 56 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) |
57 #include <CoreServices/CoreServices.h> | 57 #include <CoreServices/CoreServices.h> |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 360 |
361 #define PLOG(sev, err) \ | 361 #define PLOG(sev, err) \ |
362 LOG_ERR_EX(sev, err) | 362 LOG_ERR_EX(sev, err) |
363 | 363 |
364 // TODO(?): Add an "assert" wrapper that logs in the same manner. | 364 // TODO(?): Add an "assert" wrapper that logs in the same manner. |
365 | 365 |
366 #endif // LOG | 366 #endif // LOG |
367 | 367 |
368 } // namespace rtc | 368 } // namespace rtc |
369 | 369 |
370 #endif // WEBRTC_BASE_LOGGING_H_ | 370 #endif // WEBRTC_RTC_BASE_LOGGING_H_ |
OLD | NEW |