Lines Matching refs:severity
47 // things to LOG(<a particular severity level>). E.g.,
133 // The supported severity levels for macros that allow you to specify one
134 // are (in increasing order of severity) INFO, WARNING, ERROR, ERROR_REPORT,
137 // Very important: logging a message at the FATAL severity level causes
140 // Note the special severity of ERROR_REPORT only available/relevant in normal
142 // no error dialog for severity ERROR or below in normal mode.
144 // There is also the special severity of DFATAL, which logs FATAL in
302 typedef bool (*LogMessageHandlerFunction)(int severity,
373 #define LOG_IS_ON(severity) \
374 ((::logging::LOG_ ## severity) >= ::logging::GetMinLogLevel())
396 #define LOG_STREAM(severity) COMPACT_GOOGLE_LOG_ ## severity.stream()
398 #define LOG(severity) LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity))
399 #define LOG_IF(severity, condition) \
400 LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
402 #define SYSLOG(severity) LOG(severity)
403 #define SYSLOG_IF(severity, condition) LOG_IF(severity, condition)
441 #define LOG_GETLASTERROR_STREAM(severity) \
442 COMPACT_GOOGLE_LOG_EX_ ## severity(Win32ErrorLogMessage, \
444 #define LOG_GETLASTERROR(severity) \
445 LAZY_STREAM(LOG_GETLASTERROR_STREAM(severity), LOG_IS_ON(severity))
446 #define LOG_GETLASTERROR_MODULE_STREAM(severity, module) \
447 COMPACT_GOOGLE_LOG_EX_ ## severity(Win32ErrorLogMessage, \
449 #define LOG_GETLASTERROR_MODULE(severity, module) \
450 LAZY_STREAM(LOG_GETLASTERROR_STREAM(severity, module), \
451 LOG_IS_ON(severity))
454 #define PLOG_STREAM(severity) LOG_GETLASTERROR_STREAM(severity)
456 #define LOG_ERRNO_STREAM(severity) \
457 COMPACT_GOOGLE_LOG_EX_ ## severity(ErrnoLogMessage, \
459 #define LOG_ERRNO(severity) \
460 LAZY_STREAM(LOG_ERRNO_STREAM(severity), LOG_IS_ON(severity))
463 #define PLOG_STREAM(severity) LOG_ERRNO_STREAM(severity)
466 #define PLOG(severity) \
467 LAZY_STREAM(PLOG_STREAM(severity), LOG_IS_ON(severity))
469 #define PLOG_IF(severity, condition) \
470 LAZY_STREAM(PLOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
619 #define DLOG_IS_ON(severity) LOG_IS_ON(severity)
620 #define DLOG_IF(severity, condition) LOG_IF(severity, condition)
622 #define DPLOG_IF(severity, condition) PLOG_IF(severity, condition)
633 #define DLOG_IS_ON(severity) false
634 #define DLOG_IF(severity, condition) EAT_STREAM_PARAMETERS
636 #define DPLOG_IF(severity, condition) EAT_STREAM_PARAMETERS
654 #define DLOG(severity) \
655 LAZY_STREAM(LOG_STREAM(severity), DLOG_IS_ON(severity))
658 #define DLOG_GETLASTERROR(severity) \
659 LAZY_STREAM(LOG_GETLASTERROR_STREAM(severity), DLOG_IS_ON(severity))
660 #define DLOG_GETLASTERROR_MODULE(severity, module) \
661 LAZY_STREAM(LOG_GETLASTERROR_STREAM(severity, module), \
662 DLOG_IS_ON(severity))
664 #define DLOG_ERRNO(severity) \
665 LAZY_STREAM(LOG_ERRNO_STREAM(severity), DLOG_IS_ON(severity))
668 #define DPLOG(severity) \
669 LAZY_STREAM(PLOG_STREAM(severity), DLOG_IS_ON(severity))
800 LogMessage(const char* file, int line, LogSeverity severity, int ctr);
806 // severity = LOG_INFO, ctr = 0
812 // Used for LOG(severity) where severity != INFO. Implied
817 LogMessage(const char* file, int line, LogSeverity severity
821 // Implied severity = LOG_FATAL
825 // specify severity. Takes ownership of the given string.
826 LogMessage(const char* file, int line, LogSeverity severity,
900 LogSeverity severity,
906 LogSeverity severity,
928 LogSeverity severity,