Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: base/logging.h

Issue 8375036: Fix bug where DVLOGs are treated as DLOG(INFO)s (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef BASE_LOGGING_H_
6 #define BASE_LOGGING_H_ 6 #define BASE_LOGGING_H_
7 #pragma once 7 #pragma once
8 8
9 #include <cassert> 9 #include <cassert>
10 #include <string> 10 #include <string>
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 LAZY_STREAM(LOG_GETLASTERROR_STREAM(severity, module), \ 606 LAZY_STREAM(LOG_GETLASTERROR_STREAM(severity, module), \
607 DLOG_IS_ON(severity)) 607 DLOG_IS_ON(severity))
608 #elif defined(OS_POSIX) 608 #elif defined(OS_POSIX)
609 #define DLOG_ERRNO(severity) \ 609 #define DLOG_ERRNO(severity) \
610 LAZY_STREAM(LOG_ERRNO_STREAM(severity), DLOG_IS_ON(severity)) 610 LAZY_STREAM(LOG_ERRNO_STREAM(severity), DLOG_IS_ON(severity))
611 #endif 611 #endif
612 612
613 #define DPLOG(severity) \ 613 #define DPLOG(severity) \
614 LAZY_STREAM(PLOG_STREAM(severity), DLOG_IS_ON(severity)) 614 LAZY_STREAM(PLOG_STREAM(severity), DLOG_IS_ON(severity))
615 615
616 #define DVLOG(verboselevel) DLOG_IF(INFO, VLOG_IS_ON(verboselevel)) 616 #define DVLOG(verboselevel) DVLOG_IF(verboselevel, VLOG_IS_ON(verboselevel))
617 617
618 #define DVPLOG(verboselevel) DVPLOG_IF(verboselevel, VLOG_IS_ON(verboselevel)) 618 #define DVPLOG(verboselevel) DVPLOG_IF(verboselevel, VLOG_IS_ON(verboselevel))
619 619
620 // Definitions for DCHECK et al. 620 // Definitions for DCHECK et al.
621 621
622 #if ENABLE_DCHECK 622 #if ENABLE_DCHECK
623 623
624 #if defined(NDEBUG) 624 #if defined(NDEBUG)
625 625
626 BASE_EXPORT extern DcheckState g_dcheck_state; 626 BASE_EXPORT extern DcheckState g_dcheck_state;
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 namespace base { 955 namespace base {
956 956
957 class StringPiece; 957 class StringPiece;
958 958
959 // Allows StringPiece to be logged. 959 // Allows StringPiece to be logged.
960 BASE_EXPORT std::ostream& operator<<(std::ostream& o, const StringPiece& piece); 960 BASE_EXPORT std::ostream& operator<<(std::ostream& o, const StringPiece& piece);
961 961
962 } // namespace base 962 } // namespace base
963 963
964 #endif // BASE_LOGGING_H_ 964 #endif // BASE_LOGGING_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698