Added an overload for S class error logging.