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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 #define LOG_ERR_EX(sev, err) \ | 347 #define LOG_ERR_EX(sev, err) \ |
348 LOG_ERRNO_EX(sev, err) | 348 LOG_ERRNO_EX(sev, err) |
349 #define LOG_ERR(sev) \ | 349 #define LOG_ERR(sev) \ |
350 LOG_ERRNO(sev) | 350 LOG_ERRNO(sev) |
351 #define LAST_SYSTEM_ERROR \ | 351 #define LAST_SYSTEM_ERROR \ |
352 (errno) | 352 (errno) |
353 #endif // WEBRTC_WIN | 353 #endif // WEBRTC_WIN |
354 | 354 |
355 #define LOG_TAG(sev, tag) \ | 355 #define LOG_TAG(sev, tag) \ |
356 LOG_SEVERITY_PRECONDITION(sev) \ | 356 LOG_SEVERITY_PRECONDITION(sev) \ |
357 rtc::LogMessage(__FILE__, __LINE__, sev, tag).stream() | 357 rtc::LogMessage(NULL, 0, sev, tag).stream() |
358 | 358 |
359 #define PLOG(sev, err) \ | 359 #define PLOG(sev, err) \ |
360 LOG_ERR_EX(sev, err) | 360 LOG_ERR_EX(sev, err) |
361 | 361 |
362 // TODO(?): Add an "assert" wrapper that logs in the same manner. | 362 // TODO(?): Add an "assert" wrapper that logs in the same manner. |
363 | 363 |
364 #endif // LOG | 364 #endif // LOG |
365 | 365 |
366 } // namespace rtc | 366 } // namespace rtc |
367 | 367 |
368 #endif // WEBRTC_BASE_LOGGING_H_ | 368 #endif // WEBRTC_BASE_LOGGING_H_ |
OLD | NEW |