node_impl/logging: add timestamp to log_to{both,file}() in node_impl.

Factor common code into make_log_string().
node_impl/logging: get rid of {error,output}_{both,file}() wrappers.