implemented: log_error method