LogEvent
-
class LogEvent
Contain information, hint, or a problem created during libdnf5::Goal::resolve()
Public Functions
-
LogEvent(libdnf5::GoalAction action, libdnf5::GoalProblem problem, const std::set<std::string> &additional_data, const libdnf5::GoalJobSettings &settings, const libdnf5::transaction::TransactionItemType spec_type, const std::string &spec)
Public constructor.
-
LogEvent(libdnf5::GoalProblem problem, const SolverProblems &solver_problems)
-
~LogEvent()
-
libdnf5::GoalAction get_action() const
- Returns:
GoalAction for which goal event was created
-
libdnf5::GoalProblem get_problem() const
- Returns:
GoalProblem that specify the type of report
-
const std::set<std::string> &get_additional_data() const
- Returns:
Additional information (internal), that are required for formatted string
-
const libdnf5::GoalJobSettings *get_job_settings() const
- Returns:
GoalJobSetting if it is relevant for the particular GoalProblem
-
const std::string *get_spec() const
- Returns:
SPEC if it is relevant for the particular GoalProblem
-
const SolverProblems *get_solver_problems() const
- Returns:
SolverProblems if they are relevant for the particular GoalProblem
-
std::string to_string() const
Convert an element from resolve log to string;.
-
LogEvent(libdnf5::GoalAction action, libdnf5::GoalProblem problem, const std::set<std::string> &additional_data, const libdnf5::GoalJobSettings &settings, const libdnf5::transaction::TransactionItemType spec_type, const std::string &spec)