string to file ("stdout" or "stderr").
--- Use stdnse.print_debug to print debug information based on the
+-- Use stdnse.debug to print debug information based on the
-- debugging level.
--- @see stdnse.print_debug
+-- @see stdnse.debug
function log_write(file, string)