/* * Sends reopen request to the current logger. It is useful for * rotating log file. * * @overload reopen * @return void */ static VALUE rb_grn_logger_s_reopen (VALUE klass) { VALUE rb_context = Qnil; grn_ctx *context; context = rb_grn_context_ensure(&rb_context); grn_logger_reopen(context); rb_grn_context_check(context, klass); return Qnil; }
static VALUE rb_grn_logger_s_reopen_with_related_object (VALUE klass, VALUE related_object) { VALUE rb_context = Qnil; grn_ctx *context; context = rb_grn_context_ensure(&rb_context); rb_grn_logger_reset_with_error_check(klass, context); grn_logger_reopen(context); rb_grn_context_check(context, related_object); return Qnil; }
void grn_log_reopen(grn_ctx *ctx) { grn_logger_reopen(ctx); grn_query_logger_reopen(ctx); }