static void vMessage(uint32_t class, const char *message, va_list args)
{
- if (system_log) {
- /* Messages go to the system log interface */
- vslilog_part(system_log, class, message, args);
- } else {
- vMessageFallback(class,message,args);
- }
+ vslilog_part(system_log, class, message, args);
}
void Message(uint32_t class, const char *message, ...)
prefix);
}
+static struct logfile startup_log;
+void log_early_init(void)
+{
+ logfile_file_init(&startup_log,stderr,"startup");
+ system_log=&startup_log.ops;;
+}
+
+/* for the benefit of main, really */
+void logfile_init_file(struct logfile *st, FILE *f);
+
void log_module(dict_t *dict)
{
setlinebuf(stderr);