MCPcopy Create free account
hub / github.com/ElementsProject/lightning / log_notification_serialize

Function log_notification_serialize

lightningd/notification.c:642–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640REGISTER_NOTIFICATION(deprecated_oneshot);
641
642static void log_notification_serialize(struct json_stream *stream,
643 enum log_level level,
644 struct timeabs time,
645 const char *source,
646 const char *logmsg)
647{
648 json_add_string(stream, "level", log_level_name(level));
649 json_add_timestr(stream, "time", time.ts);
650 json_add_timeiso(stream, "timestamp", time);
651 json_add_string(stream, "source", source);
652 json_add_string(stream, "log", logmsg);
653}
654
655
656REGISTER_NOTIFICATION(log);

Callers 1

notify_logFunction · 0.85

Calls 4

log_level_nameFunction · 0.85
json_add_timestrFunction · 0.85
json_add_timeisoFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected