| 620 | } |
| 621 | |
| 622 | static void maybe_notify_log(struct logger *log, |
| 623 | const struct log_hdr *l, |
| 624 | const char *logmsg) |
| 625 | { |
| 626 | if (l->level >= log->print_level) |
| 627 | notify_log(log->log_book->ld, |
| 628 | l->level, |
| 629 | l->time, |
| 630 | l->prefix->prefix, |
| 631 | logmsg); |
| 632 | } |
| 633 | |
| 634 | static void init_log_hdr(const struct logger *log, |
| 635 | struct log_hdr *l, |