mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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:
parent
db9dbc5f31
commit
bef137209d
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user