Namespaces | Defines | Functions | Variables
raw_logging.h File Reference
#include <string>
#include "absl/base/attributes.h"
#include "absl/base/internal/atomic_hook.h"
#include "absl/base/log_severity.h"
#include "absl/base/macros.h"
#include "absl/base/port.h"
Include dependency graph for raw_logging.h:

Go to the source code of this file.

Namespaces

namespace  absl
namespace  absl::raw_logging_internal

Defines

#define ABSL_INTERNAL_CHECK(condition, message)
#define ABSL_INTERNAL_LOG(severity, message)
#define ABSL_RAW_CHECK(condition, message)
#define ABSL_RAW_LOG(severity,...)
#define ABSL_RAW_LOGGING_INTERNAL_ERROR   ::absl::LogSeverity::kError
#define ABSL_RAW_LOGGING_INTERNAL_FATAL   ::absl::LogSeverity::kFatal
#define ABSL_RAW_LOGGING_INTERNAL_INFO   ::absl::LogSeverity::kInfo
#define ABSL_RAW_LOGGING_INTERNAL_LEVEL(severity)   ::absl::NormalizeLogSeverity(severity)
#define ABSL_RAW_LOGGING_INTERNAL_WARNING   ::absl::LogSeverity::kWarning

Functions

constexpr const char * absl::raw_logging_internal::Basename (const char *fname, int offset)
void absl::raw_logging_internal::RawLog (absl::LogSeverity severity, const char *file, int line, const char *format,...) ABSL_PRINTF_ATTRIBUTE(4
bool absl::raw_logging_internal::RawLoggingFullySupported ()
void absl::raw_logging_internal::RegisterInternalLogFunction (InternalLogFunction func)
void absl::raw_logging_internal::SafeWriteToStderr (const char *s, size_t len)

Variables

base_internal::AtomicHook
< InternalLogFunction > 
absl::raw_logging_internal::internal_log_function

Define Documentation

#define ABSL_INTERNAL_CHECK (   condition,
  message 
)
Value:
do {                                                             \
    if (ABSL_PREDICT_FALSE(!(condition))) {                        \
      std::string death_message = "Check " #condition " failed: "; \
      death_message += std::string(message);                       \
      ABSL_INTERNAL_LOG(FATAL, death_message);                     \
    }                                                              \
  } while (0)

Definition at line 83 of file raw_logging.h.

#define ABSL_INTERNAL_LOG (   severity,
  message 
)
Value:
do {                                                                \
    constexpr const char* absl_raw_logging_internal_basename =        \
        ::absl::raw_logging_internal::Basename(__FILE__,              \
                                               sizeof(__FILE__) - 1); \
    ::absl::raw_logging_internal::internal_log_function(              \
        ABSL_RAW_LOGGING_INTERNAL_##severity,                         \
        absl_raw_logging_internal_basename, __LINE__, message);       \
  } while (0)

Definition at line 73 of file raw_logging.h.

#define ABSL_RAW_CHECK (   condition,
  message 
)
Value:
do {                                                                 \
    if (ABSL_PREDICT_FALSE(!(condition))) {                            \
      ABSL_RAW_LOG(FATAL, "Check %s failed: %s", #condition, message); \
    }                                                                  \
  } while (0)

Definition at line 57 of file raw_logging.h.

#define ABSL_RAW_LOG (   severity,
  ... 
)
Value:
do {                                                                         \
    constexpr const char* absl_raw_logging_internal_basename =                 \
        ::absl::raw_logging_internal::Basename(__FILE__,                       \
                                               sizeof(__FILE__) - 1);          \
    ::absl::raw_logging_internal::RawLog(ABSL_RAW_LOGGING_INTERNAL_##severity, \
                                         absl_raw_logging_internal_basename,   \
                                         __LINE__, __VA_ARGS__);               \
  } while (0)

Definition at line 42 of file raw_logging.h.

Definition at line 94 of file raw_logging.h.

Definition at line 95 of file raw_logging.h.

Definition at line 92 of file raw_logging.h.

#define ABSL_RAW_LOGGING_INTERNAL_LEVEL (   severity)    ::absl::NormalizeLogSeverity(severity)

Definition at line 96 of file raw_logging.h.

Definition at line 93 of file raw_logging.h.



abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:16