Namespaces | Macros | Typedefs | 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

 absl
 
 absl::raw_logging_internal
 

Macros

#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
 

Typedefs

using absl::raw_logging_internal::AbortHook = void(*)(const char *file, int line, const char *buf_start, const char *prefix_end, const char *buf_end)
 
using absl::raw_logging_internal::InternalLogFunction = void(*)(absl::LogSeverity severity, const char *file, int line, const std::string &message)
 
using absl::raw_logging_internal::LogPrefixHook = bool(*)(absl::LogSeverity severity, const char *file, int line, char **buffer, int *buf_size)
 

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
 

Macro Definition Documentation

◆ ABSL_INTERNAL_CHECK

#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)
#define ABSL_PREDICT_FALSE(x)
Definition: optimization.h:177

Definition at line 83 of file raw_logging.h.

◆ ABSL_INTERNAL_LOG

#define ABSL_INTERNAL_LOG (   severity,
  message 
)
Value:
do { \
constexpr const char* absl_raw_logging_internal_basename = \
sizeof(__FILE__) - 1); \
ABSL_RAW_LOGGING_INTERNAL_##severity, \
absl_raw_logging_internal_basename, __LINE__, message); \
} while (0)
constexpr const char * Basename(const char *fname, int offset)
Definition: raw_logging.h:119
base_internal::AtomicHook< InternalLogFunction > internal_log_function

Definition at line 73 of file raw_logging.h.

◆ ABSL_RAW_CHECK

#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)
#define ABSL_PREDICT_FALSE(x)
Definition: optimization.h:177

Definition at line 57 of file raw_logging.h.

◆ ABSL_RAW_LOG

#define ABSL_RAW_LOG (   severity,
  ... 
)
Value:
do { \
constexpr const char* absl_raw_logging_internal_basename = \
sizeof(__FILE__) - 1); \
::absl::raw_logging_internal::RawLog(ABSL_RAW_LOGGING_INTERNAL_##severity, \
absl_raw_logging_internal_basename, \
__LINE__, __VA_ARGS__); \
} while (0)
constexpr const char * Basename(const char *fname, int offset)
Definition: raw_logging.h:119
void RawLog(absl::LogSeverity severity, const char *file, int line, const char *format,...) ABSL_PRINTF_ATTRIBUTE(4
Definition: raw_logging.cc:202

Definition at line 42 of file raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_ERROR

#define ABSL_RAW_LOGGING_INTERNAL_ERROR   ::absl::LogSeverity::kError

Definition at line 94 of file raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_FATAL

#define ABSL_RAW_LOGGING_INTERNAL_FATAL   ::absl::LogSeverity::kFatal

Definition at line 95 of file raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_INFO

#define ABSL_RAW_LOGGING_INTERNAL_INFO   ::absl::LogSeverity::kInfo

Definition at line 92 of file raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_LEVEL

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

Definition at line 96 of file raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_WARNING

#define ABSL_RAW_LOGGING_INTERNAL_WARNING   ::absl::LogSeverity::kWarning

Definition at line 93 of file raw_logging.h.



abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:22