int max_loglevel; /**< Highest severity level to send to this stream. */
int is_temporary; /**< Boolean: close after initializing logging subsystem.*/
int is_syslog; /**< Boolean: send messages to syslog. */
- log_callback callback; /**< If not num, send messages to this function. */
+ log_callback callback; /**< If not NULL, send messages to this function. */
} logfile_t;
/** Helper: map a log severity to descriptive string. */
lf = tor_malloc_zero(sizeof(logfile_t));
lf->loglevel = loglevelMin;
lf->max_loglevel = loglevelMax;
- lf->filename = tor_strdup("callback>");
+ lf->filename = tor_strdup("<callback>");
lf->callback = cb;
lf->next = logfiles;
logfiles = lf;