9#ifndef BOOST_REDIS_LOG_TO_STDERR_HPP
10#define BOOST_REDIS_LOG_TO_STDERR_HPP
17namespace boost::redis::detail {
20inline void log_to_file(FILE* f, std::string_view msg,
const char* prefix =
"(Boost.Redis) ")
23 const char* msg_ptr = msg.empty() ?
"" : msg.data();
28 auto precision =
static_cast<int>((std::min)(msg.size(),
static_cast<std::size_t
>(0xffffu)));
32 std::fprintf(f,
"%s%.*s\n", prefix, precision, msg_ptr);