21 #ifdef GPR_WINDOWS_LOG
57 size_t strp_buflen = (size_t)
ret + 1;
64 if ((
size_t)
ret != strp_buflen - 1) {
77 const char* final_slash;
78 const char* display_file;
85 final_slash = strrchr(
args->file,
'\\');
86 if (final_slash == NULL)
87 display_file =
args->file;
89 display_file = final_slash + 1;
92 strcpy(time_buffer,
"error:localtime");
94 strftime(time_buffer,
sizeof(time_buffer),
"%m%d %H:%M:%S", &
tm)) {
95 strcpy(time_buffer,
"error:strftime");
103 fprintf(
stderr,
"%s%s.%09u %5lu %s:%d] %s\n%s\n",
105 (
int)(
now.tv_nsec), GetCurrentThreadId(), display_file,
args->line,
106 args->message, stack_trace->c_str());
108 fprintf(
stderr,
"%s%s.%09u %5lu %s:%d] %s\n",
110 (
int)(
now.tv_nsec), GetCurrentThreadId(), display_file,
args->line,