.. _program_listing_file__tmp_ws_src_schunk_svh_ros_driver_schunk_svh_driver_include_schunk_svh_driver_ROSLogHandler.hpp: Program Listing for File ROSLogHandler.hpp ========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/schunk_svh_ros_driver/schunk_svh_driver/include/schunk_svh_driver/ROSLogHandler.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // // © Copyright 2022 SCHUNK Mobile Greifsysteme GmbH, Lauffen/Neckar Germany // © Copyright 2022 FZI Forschungszentrum Informatik, Karlsruhe, Germany // // This file is part of the Schunk SVH Driver. // // The Schunk SVH Driver is free software: you can redistribute it and/or // modify it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or (at your // option) any later version. // // The Schunk SVH Driver is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General // Public License for more details. // // You should have received a copy of the GNU General Public License along with // the Schunk SVH Driver. If not, see . // //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- #pragma once #include #include #include #include #include "rclcpp/logger.hpp" namespace driver_svh { class ROSLogHandler : public LogHandler { public: ROSLogHandler() = default; virtual ~ROSLogHandler() override = default; virtual void log( const std::string & file, const int line, const std::string & name, LogLevel level, const std::string & msg) override; private: }; void setupROSLogHandler(LogLevel level = LogLevel::INFO); } // namespace driver_svh