| 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 28 matching lines...) Expand all Loading... |
| 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_BASE_LOGGING_H_ |
| 47 #define WEBRTC_BASE_LOGGING_H_ | 47 #define WEBRTC_BASE_LOGGING_H_ |
| 48 | 48 |
| 49 #ifdef HAVE_CONFIG_H | |
| 50 #include "config.h" // NOLINT | |
| 51 #endif | |
| 52 | |
| 53 #include <list> | 49 #include <list> |
| 54 #include <sstream> | 50 #include <sstream> |
| 55 #include <string> | 51 #include <string> |
| 56 #include <utility> | 52 #include <utility> |
| 57 | 53 |
| 58 #include "webrtc/base/basictypes.h" | 54 #include "webrtc/base/basictypes.h" |
| 59 #include "webrtc/base/constructormagic.h" | 55 #include "webrtc/base/constructormagic.h" |
| 60 #include "webrtc/base/thread_annotations.h" | 56 #include "webrtc/base/thread_annotations.h" |
| 61 | 57 |
| 62 namespace rtc { | 58 namespace rtc { |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 #define PLOG(sev, err) \ | 347 #define PLOG(sev, err) \ |
| 352 LOG_ERR_EX(sev, err) | 348 LOG_ERR_EX(sev, err) |
| 353 | 349 |
| 354 // TODO(?): Add an "assert" wrapper that logs in the same manner. | 350 // TODO(?): Add an "assert" wrapper that logs in the same manner. |
| 355 | 351 |
| 356 #endif // LOG | 352 #endif // LOG |
| 357 | 353 |
| 358 } // namespace rtc | 354 } // namespace rtc |
| 359 | 355 |
| 360 #endif // WEBRTC_BASE_LOGGING_H_ | 356 #endif // WEBRTC_BASE_LOGGING_H_ |
| OLD | NEW |