[net] add initial support for reopening logfile