cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Implementation of functions to create log sinks. More...
#include "msgpack_rpc/logging/log_sinks.h"
#include <cstddef>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include <spdlog/common.h>
#include <spdlog/sinks/rotating_file_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include "msgpack_rpc/logging/i_log_sink.h"
#include "msgpack_rpc/logging/impl/spdlog_log_sink.h"
Go to the source code of this file.
Namespaces | |
namespace | msgpack_rpc |
Namespace of cpp-msgpack-rpc library. | |
namespace | msgpack_rpc::logging |
Namespace of logging. |
Functions | |
std::shared_ptr< ILogSink > | msgpack_rpc::logging::create_log_sink_from_config (const config::LoggingConfig &config) |
Create a log sink from a configuration. | |
std::shared_ptr< ILogSink > | msgpack_rpc::logging::create_rotating_file_log_sink (std::string_view file_path, std::size_t max_file_size, std::size_t max_files) |
Create a log sink to write to a file with rotation. | |
std::shared_ptr< ILogSink > | msgpack_rpc::logging::create_stdout_log_sink () |
Create a log sink to write to standard output. | |
std::shared_ptr< ILogSink > | msgpack_rpc::logging::create_stdout_log_sink_impl () |
Create a log sink to write to standard output. |
Implementation of functions to create log sinks.
Definition in file log_sinks.cpp.