Class YamlLogger¶
Defined in File ParticipantRegistry.hpp
Inheritance Relationships¶
Base Type¶
public rmf_traffic_ros2::schedule::AbstractParticipantLogger
(Class AbstractParticipantLogger)
Class Documentation¶
-
class
rmf_traffic_ros2::schedule
::
YamlLogger
: public rmf_traffic_ros2::schedule::AbstractParticipantLogger¶ YAML logger class. Logs everything to YAML buffers on disk.
Public Functions
-
YamlLogger
(std::string filename)¶ Constructor Loads and logs to the specified file.
- Exceptions
YAML::ParserException
: if there is an error in the syntax of log file.YAML::BadFile
: if there are problems with reading the file.std::filesystem_error
: if there is no permission to create the directory.
-
virtual void
write_operation
(AtomicOperation operation) override¶
-
virtual std::optional<AtomicOperation>
read_next_record
() override¶ - Exceptions
std::runtime_error
: if there was an error in the logfile.
-