Macros | Functions | Variables
raw_logging.cc File Reference
#include "utilities.h"
#include <stdarg.h>
#include <cstdio>
#include <cerrno>
#include <fcntl.h>
#include <ctime>
#include "config.h"
#include <glog/logging.h>
#include <glog/raw_logging.h>
#include "base/commandlineflags.h"
Include dependency graph for raw_logging.cc:

Go to the source code of this file.

Macros

#define GLOG_ATTRIBUTE_FORMAT(archetype, stringIndex, firstToCheck)
 
#define GLOG_ATTRIBUTE_FORMAT_ARG(stringIndex)
 
#define safe_write(fd, s, len)   write(fd, s, len)
 

Functions

static bool DoRawLog (char **buf, size_t *size, const char *format,...)
 
void RawLog__ (LogSeverity severity, const char *file, int line, const char *format,...)
 
static bool VADoRawLog (char **buf, size_t *size, const char *format, va_list ap)
 

Variables

static char crash_buf [kLogBufSize+1] = { 0 }
 
static CrashReason crash_reason
 
static bool crashed = false
 
static const int kLogBufSize = 3000
 

Macro Definition Documentation

◆ GLOG_ATTRIBUTE_FORMAT

#define GLOG_ATTRIBUTE_FORMAT (   archetype,
  stringIndex,
  firstToCheck 
)

Definition at line 77 of file raw_logging.cc.

◆ GLOG_ATTRIBUTE_FORMAT_ARG

#define GLOG_ATTRIBUTE_FORMAT_ARG (   stringIndex)

Definition at line 78 of file raw_logging.cc.

◆ safe_write

#define safe_write (   fd,
  s,
  len 
)    write(fd, s, len)

Definition at line 66 of file raw_logging.cc.

Function Documentation

◆ DoRawLog()

static bool DoRawLog ( char **  buf,
size_t *  size,
const char *  format,
  ... 
)
static

Definition at line 90 of file raw_logging.cc.

◆ RawLog__()

void RawLog__ ( LogSeverity  severity,
const char *  file,
int  line,
const char *  format,
  ... 
)

Definition at line 124 of file raw_logging.cc.

◆ VADoRawLog()

static bool VADoRawLog ( char **  buf,
size_t *  size,
const char *  format,
va_list  ap 
)
inlinestatic

Definition at line 102 of file raw_logging.cc.

Variable Documentation

◆ crash_buf

char crash_buf[kLogBufSize+1] = { 0 }
static

Definition at line 121 of file raw_logging.cc.

◆ crash_reason

CrashReason crash_reason
static

Definition at line 120 of file raw_logging.cc.

◆ crashed

bool crashed = false
static

Definition at line 119 of file raw_logging.cc.

◆ kLogBufSize

const int kLogBufSize = 3000
static

Definition at line 118 of file raw_logging.cc.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04