libplugin: expose plugin_logv.

If you have your own logging infra, you'll want this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2023-06-30 00:59:47 +09:30
parent db9dbc5f31
commit bef137209d
2 changed files with 3 additions and 2 deletions

View File

@ -1357,8 +1357,8 @@ struct plugin_timer *plugin_timer_(struct plugin *p, struct timerel t,
return timer;
}
static void plugin_logv(struct plugin *p, enum log_level l,
const char *fmt, va_list ap)
void plugin_logv(struct plugin *p, enum log_level l,
const char *fmt, va_list ap)
{
struct json_stream *js = new_json_stream(NULL, NULL, NULL);

View File

@ -372,6 +372,7 @@ struct plugin_timer *plugin_timer_(struct plugin *p,
/* Log something */
void plugin_log(struct plugin *p, enum log_level l, const char *fmt, ...) PRINTF_FMT(3, 4);
void plugin_logv(struct plugin *p, enum log_level l, const char *fmt, va_list ap);
/* Notify the caller of something. */
struct json_stream *plugin_notify_start(struct command *cmd, const char *method);