mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
@@ -1357,8 +1357,8 @@ struct plugin_timer *plugin_timer_(struct plugin *p, struct timerel t,
|
|||||||
return timer;
|
return timer;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void plugin_logv(struct plugin *p, enum log_level l,
|
void plugin_logv(struct plugin *p, enum log_level l,
|
||||||
const char *fmt, va_list ap)
|
const char *fmt, va_list ap)
|
||||||
{
|
{
|
||||||
struct json_stream *js = new_json_stream(NULL, NULL, NULL);
|
struct json_stream *js = new_json_stream(NULL, NULL, NULL);
|
||||||
|
|
||||||
|
|||||||
@@ -372,6 +372,7 @@ struct plugin_timer *plugin_timer_(struct plugin *p,
|
|||||||
|
|
||||||
/* Log something */
|
/* Log something */
|
||||||
void plugin_log(struct plugin *p, enum log_level l, const char *fmt, ...) PRINTF_FMT(3, 4);
|
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. */
|
/* Notify the caller of something. */
|
||||||
struct json_stream *plugin_notify_start(struct command *cmd, const char *method);
|
struct json_stream *plugin_notify_start(struct command *cmd, const char *method);
|
||||||
|
|||||||
Reference in New Issue
Block a user