log: rename _log to __write_msg for clarity.