Go to the documentation of this file.
32 #include "absl/strings/str_format.h"
51 char* allocated =
nullptr;
60 }
else if ((
size_t)
ret <=
sizeof(
buf) - 1) {
73 const char* final_slash;
74 const char* display_file;
81 final_slash = strrchr(
args->file,
'/');
82 if (final_slash ==
nullptr)
83 display_file =
args->file;
85 display_file = final_slash + 1;
87 if (!localtime_r(&
timer, &
tm)) {
88 strcpy(time_buffer,
"error:localtime");
90 strftime(time_buffer,
sizeof(time_buffer),
"%m%d %H:%M:%S", &
tm)) {
91 strcpy(time_buffer,
"error:strftime");
96 time_buffer, (
int)(
now.tv_nsec), sys_gettid(), display_file,
args->line);
104 stack_trace->c_str());
int __cdecl vsnprintf(char *buffer, size_t count, const char *format, va_list argptr)
ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec< Args... > &format, const Args &... args)
GPRAPI void GPRAPI int gpr_should_log(gpr_log_severity severity)
GPRAPI void gpr_free(void *ptr)
GPRAPI void * gpr_malloc(size_t size)
const GPRAPI char * gpr_log_severity_string(gpr_log_severity severity)
absl::optional< std::string > GetCurrentStackTrace()
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
GPRAPI gpr_timespec gpr_now(gpr_clock_type clock)
void gpr_default_log(gpr_log_func_args *args)
UniquePtr< SSL_SESSION > ret
static const char prefix[]
GPRAPI void gpr_log_message(const char *file, int line, gpr_log_severity severity, const char *message)
int gpr_should_log_stacktrace(gpr_log_severity severity)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:29