Made format_log_msg virtual.