X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=log.c;h=84f5a86abd610240bff0031a805213dc2aaa4589;hb=328292c7927b477d9a732f21732edf5885d67793;hp=6aced817eb0aa79cc868de3a1c60fdb16a6aa782;hpb=9cb06c1c86f9a7f687f6e3ac5af05a5072ce16d9;p=secnet.git diff --git a/log.c b/log.c index 6aced81..84f5a86 100644 --- a/log.c +++ b/log.c @@ -663,6 +663,16 @@ void log_from_fd(int fd, cstring_t prefix, struct log_if *log) 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);