monitorlog_t
int readlogline(monitorlog_t *log, char **bufp);
static monitorlog_t nclog;
readlogline(monitorlog_t *log, char **bufp)