logging.hpp (7a16ddc8e036eabcbe7e0c8087ceee7a4cb1d2d8) logging.hpp (0f441f09144154dbe83747edf2c267cb3e3e7543)
1#pragma once
2
3#include "bmcweb_config.h"
4
5#include <bit>
6#include <format>
7#include <iostream>
8#include <source_location>

--- 174 unchanged lines hidden (view full) ---

183 std::source_location::current()) noexcept
184 {
185 crow::vlog<crow::LogLevel::Debug, Args...>(
186 std::move(format), std::forward<Args>(args)..., loc);
187 }
188};
189
190template <typename... Args>
1#pragma once
2
3#include "bmcweb_config.h"
4
5#include <bit>
6#include <format>
7#include <iostream>
8#include <source_location>

--- 174 unchanged lines hidden (view full) ---

183 std::source_location::current()) noexcept
184 {
185 crow::vlog<crow::LogLevel::Debug, Args...>(
186 std::move(format), std::forward<Args>(args)..., loc);
187 }
188};
189
190template <typename... Args>
191BMCWEB_LOG_CRITICAL(std::format_string<Args...>,
192 Args&&...) -> BMCWEB_LOG_CRITICAL<Args...>;
191BMCWEB_LOG_CRITICAL(std::format_string<Args...>, Args&&...)
192 -> BMCWEB_LOG_CRITICAL<Args...>;
193
194template <typename... Args>
193
194template <typename... Args>
195BMCWEB_LOG_ERROR(std::format_string<Args...>,
196 Args&&...) -> BMCWEB_LOG_ERROR<Args...>;
195BMCWEB_LOG_ERROR(std::format_string<Args...>, Args&&...)
196 -> BMCWEB_LOG_ERROR<Args...>;
197
198template <typename... Args>
197
198template <typename... Args>
199BMCWEB_LOG_WARNING(std::format_string<Args...>,
200 Args&&...) -> BMCWEB_LOG_WARNING<Args...>;
199BMCWEB_LOG_WARNING(std::format_string<Args...>, Args&&...)
200 -> BMCWEB_LOG_WARNING<Args...>;
201
202template <typename... Args>
201
202template <typename... Args>
203BMCWEB_LOG_INFO(std::format_string<Args...>,
204 Args&&...) -> BMCWEB_LOG_INFO<Args...>;
203BMCWEB_LOG_INFO(std::format_string<Args...>, Args&&...)
204 -> BMCWEB_LOG_INFO<Args...>;
205
206template <typename... Args>
205
206template <typename... Args>
207BMCWEB_LOG_DEBUG(std::format_string<Args...>,
208 Args&&...) -> BMCWEB_LOG_DEBUG<Args...>;
207BMCWEB_LOG_DEBUG(std::format_string<Args...>, Args&&...)
208 -> BMCWEB_LOG_DEBUG<Args...>;