.. _program_listing_file_include_franka_logging_logger.hpp: Program Listing for File logger.hpp =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/franka/logging/logger.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright (c) 2024 Franka Robotics GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #include #include #include namespace franka::logging { auto addLogger(const std::shared_ptr& logger) -> void; auto removeLogger(const std::string& logger_name) -> void; auto removeAllLoggers() -> void; auto logInfo(const std::string& message) -> void; template auto logInfo(const S& format_str, Args&&... args) -> void { logInfo(fmt::format(format_str, std::forward(args)...)); } auto logWarn(const std::string& message) -> void; template auto logWarn(const S& format_str, Args&&... args) -> void { logWarn(fmt::format(format_str, std::forward(args)...)); } auto logError(const std::string& message) -> void; template auto logError(const S& format_str, Args&&... args) -> void { logError(fmt::format(format_str, std::forward(args)...)); } } // namespace franka::logging