[Gpr_To_Absl_Logging] Removing gpr_set_log_function (#37321)

[Gpr_To_Absl_Logging] Removing gpr_set_log_function

Closes #37321

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37321 from tanvi-jagtap:remove_gpr_set_log_function 820e69fdd6
PiperOrigin-RevId: 657437886
pull/37335/head
Tanvi Jagtap 4 months ago committed by Copybara-Service
parent b6e0137608
commit 57a629e88c
  1. 1
      grpc.def
  2. 16
      include/grpc/support/log.h
  3. 7
      src/core/util/log.cc
  4. 2
      src/ruby/ext/grpc/rb_grpc_imports.generated.c
  5. 3
      src/ruby/ext/grpc/rb_grpc_imports.generated.h

1
grpc.def generated

@ -233,7 +233,6 @@ EXPORTS
gpr_log gpr_log
gpr_should_log gpr_should_log
gpr_log_verbosity_init gpr_log_verbosity_init
gpr_set_log_function
gpr_format_message gpr_format_message
gpr_strdup gpr_strdup
gpr_asprintf gpr_asprintf

@ -55,22 +55,6 @@ GPRAPI int gpr_should_log(gpr_log_severity severity);
GPRAPI void gpr_log_verbosity_init(void); GPRAPI void gpr_log_verbosity_init(void);
/** Log overrides: applications can use this API to intercept logging calls
and use their own implementations */
struct gpr_log_func_args {
const char* file;
int line;
gpr_log_severity severity;
const char* message;
};
typedef struct gpr_log_func_args gpr_log_func_args;
typedef void (*gpr_log_func)(gpr_log_func_args* args);
GPRAPI void gpr_set_log_function(gpr_log_func deprecated_setting);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

@ -119,10 +119,3 @@ void gpr_log_verbosity_init(void) {
} }
#endif // GRPC_VERBOSITY_MACRO #endif // GRPC_VERBOSITY_MACRO
} }
void gpr_set_log_function([[maybe_unused]] gpr_log_func deprecated_setting) {
LOG(ERROR)
<< "This function is deprecated. This function will be deleted in the "
"next gRPC release. You may create a new absl LogSink with similar "
"functionality. gRFC: https://github.com/grpc/proposal/pull/425 ";
}

@ -256,7 +256,6 @@ gpr_cpu_current_cpu_type gpr_cpu_current_cpu_import;
gpr_log_type gpr_log_import; gpr_log_type gpr_log_import;
gpr_should_log_type gpr_should_log_import; gpr_should_log_type gpr_should_log_import;
gpr_log_verbosity_init_type gpr_log_verbosity_init_import; gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
gpr_set_log_function_type gpr_set_log_function_import;
gpr_format_message_type gpr_format_message_import; gpr_format_message_type gpr_format_message_import;
gpr_strdup_type gpr_strdup_import; gpr_strdup_type gpr_strdup_import;
gpr_asprintf_type gpr_asprintf_import; gpr_asprintf_type gpr_asprintf_import;
@ -542,7 +541,6 @@ void grpc_rb_load_imports(HMODULE library) {
gpr_log_import = (gpr_log_type) GetProcAddress(library, "gpr_log"); gpr_log_import = (gpr_log_type) GetProcAddress(library, "gpr_log");
gpr_should_log_import = (gpr_should_log_type) GetProcAddress(library, "gpr_should_log"); gpr_should_log_import = (gpr_should_log_type) GetProcAddress(library, "gpr_should_log");
gpr_log_verbosity_init_import = (gpr_log_verbosity_init_type) GetProcAddress(library, "gpr_log_verbosity_init"); gpr_log_verbosity_init_import = (gpr_log_verbosity_init_type) GetProcAddress(library, "gpr_log_verbosity_init");
gpr_set_log_function_import = (gpr_set_log_function_type) GetProcAddress(library, "gpr_set_log_function");
gpr_format_message_import = (gpr_format_message_type) GetProcAddress(library, "gpr_format_message"); gpr_format_message_import = (gpr_format_message_type) GetProcAddress(library, "gpr_format_message");
gpr_strdup_import = (gpr_strdup_type) GetProcAddress(library, "gpr_strdup"); gpr_strdup_import = (gpr_strdup_type) GetProcAddress(library, "gpr_strdup");
gpr_asprintf_import = (gpr_asprintf_type) GetProcAddress(library, "gpr_asprintf"); gpr_asprintf_import = (gpr_asprintf_type) GetProcAddress(library, "gpr_asprintf");

@ -744,9 +744,6 @@ extern gpr_should_log_type gpr_should_log_import;
typedef void(*gpr_log_verbosity_init_type)(void); typedef void(*gpr_log_verbosity_init_type)(void);
extern gpr_log_verbosity_init_type gpr_log_verbosity_init_import; extern gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
#define gpr_log_verbosity_init gpr_log_verbosity_init_import #define gpr_log_verbosity_init gpr_log_verbosity_init_import
typedef void(*gpr_set_log_function_type)(gpr_log_func deprecated_setting);
extern gpr_set_log_function_type gpr_set_log_function_import;
#define gpr_set_log_function gpr_set_log_function_import
typedef char*(*gpr_format_message_type)(int messageid); typedef char*(*gpr_format_message_type)(int messageid);
extern gpr_format_message_type gpr_format_message_import; extern gpr_format_message_type gpr_format_message_import;
#define gpr_format_message gpr_format_message_import #define gpr_format_message gpr_format_message_import

Loading…
Cancel
Save