-/* Emulate the old single-file interface: close the existing log file and open a new one. */
-void
-log_file(const char *name)
-{
- if (!name)
- return;
-
- struct log_stream *ls = log_new_file(name);
- struct log_stream *def = log_stream_by_flags(0);
- log_rm_substream(def, NULL);
- log_add_substream(def, ls);
- dup2(ls->idata, 2); // Let fd2 be an alias for the log file
-}
-
-/* destructor for standard files */