Namespaces | Macros | Typedefs | Functions | Variables
abseil-cpp/absl/base/internal/raw_logging.h File Reference
#include <string>
#include "absl/base/attributes.h"
#include "absl/base/config.h"
#include "absl/base/internal/atomic_hook.h"
#include "absl/base/log_severity.h"
#include "absl/base/macros.h"
#include "absl/base/optimization.h"
#include "absl/base/port.h"
Include dependency graph for abseil-cpp/absl/base/internal/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::LogFilterAndPrefixHook = bool(*)(absl::LogSeverity severity, const char *file, int line, char **buf, int *buf_size)
 

Functions

void absl::raw_logging_internal::AsyncSignalSafeWriteToStderr (const char *s, size_t len)
 
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,...)
 
bool absl::raw_logging_internal::RawLoggingFullySupported ()
 
void absl::raw_logging_internal::RegisterAbortHook (AbortHook func)
 
void absl::raw_logging_internal::RegisterInternalLogFunction (InternalLogFunction func)
 
void absl::raw_logging_internal::RegisterLogFilterAndPrefixHook (LogFilterAndPrefixHook func)
 

Variables

ABSL_INTERNAL_ATOMIC_HOOK_ATTRIBUTES ABSL_DLL 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)

Definition at line 85 of file abseil-cpp/absl/base/internal/raw_logging.h.

◆ ABSL_INTERNAL_LOG

#define ABSL_INTERNAL_LOG (   severity,
  message 
)
Value:
do { \
constexpr const char* absl_raw_logging_internal_filename = __FILE__; \
ABSL_RAW_LOGGING_INTERNAL_##severity, \
absl_raw_logging_internal_filename, __LINE__, message); \
if (ABSL_RAW_LOGGING_INTERNAL_##severity == ::absl::LogSeverity::kFatal) \
ABSL_INTERNAL_UNREACHABLE; \
} while (0)

Definition at line 75 of file abseil-cpp/absl/base/internal/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)

Definition at line 59 of file abseil-cpp/absl/base/internal/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)

Definition at line 44 of file abseil-cpp/absl/base/internal/raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_ERROR

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

Definition at line 96 of file abseil-cpp/absl/base/internal/raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_FATAL

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

Definition at line 97 of file abseil-cpp/absl/base/internal/raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_INFO

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

Definition at line 94 of file abseil-cpp/absl/base/internal/raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_LEVEL

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

Definition at line 98 of file abseil-cpp/absl/base/internal/raw_logging.h.

◆ ABSL_RAW_LOGGING_INTERNAL_WARNING

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

Definition at line 95 of file abseil-cpp/absl/base/internal/raw_logging.h.

ABSL_PREDICT_FALSE
#define ABSL_PREDICT_FALSE(x)
Definition: abseil-cpp/absl/base/optimization.h:180
bloat_diff.severity
def severity
Definition: bloat_diff.py:143
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
message
char * message
Definition: libuv/docs/code/tty-gravity/main.c:12
absl::LogSeverity::kFatal
@ kFatal
absl::raw_logging_internal::RawLog
void RawLog(absl::LogSeverity severity, const char *file, int line, const char *format,...)
Definition: abseil-cpp/absl/base/internal/raw_logging.cc:217
FATAL
#define FATAL(msg)
Definition: task.h:88
absl::raw_logging_internal::internal_log_function
ABSL_INTERNAL_ATOMIC_HOOK_ATTRIBUTES ABSL_DLL base_internal::AtomicHook< InternalLogFunction > internal_log_function
Definition: bloaty/third_party/abseil-cpp/absl/base/internal/raw_logging.h:179
absl::raw_logging_internal::Basename
constexpr const char * Basename(const char *fname, int offset)
Definition: abseil-cpp/absl/base/internal/raw_logging.h:119


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:27