cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::logging::impl::spdlog_backend Namespace Reference

Namespace of internal implementation of logging using spdlog library. More...

Classes

class  SpdlogLogSink
 Class of log sinks using spdlog library. More...

Functions

void configure_spdlog_logger_format_for_consoles (const std::shared_ptr< spdlog::logger > &logger)
 Configure the log format of a logger in spdlog library for output to consoles.
void configure_spdlog_logger_format_for_files (const std::shared_ptr< spdlog::logger > &logger)
 Configure the log format of a logger in spdlog library for output to files.
spdlog::level::level_enum convert_log_level (LogLevel level)
 Convert a log level in this library to a log level in spdlog library.

Detailed Description

Namespace of internal implementation of logging using spdlog library.

Function Documentation

◆ configure_spdlog_logger_format_for_consoles()

void msgpack_rpc::logging::impl::spdlog_backend::configure_spdlog_logger_format_for_consoles ( const std::shared_ptr< spdlog::logger > & logger)
inline

Configure the log format of a logger in spdlog library for output to consoles.

Parameters
[in]loggerLogger in spdlog library.

Definition at line 106 of file spdlog_log_sink.h.

◆ configure_spdlog_logger_format_for_files()

void msgpack_rpc::logging::impl::spdlog_backend::configure_spdlog_logger_format_for_files ( const std::shared_ptr< spdlog::logger > & logger)
inline

Configure the log format of a logger in spdlog library for output to files.

Parameters
[in]loggerLogger in spdlog library.

Definition at line 117 of file spdlog_log_sink.h.

◆ convert_log_level()

spdlog::level::level_enum msgpack_rpc::logging::impl::spdlog_backend::convert_log_level ( LogLevel level)
inlinenodiscard

Convert a log level in this library to a log level in spdlog library.

Parameters
[in]levelLog level in this library.
Returns
Log level in spdlog library.

Definition at line 44 of file spdlog_log_sink.h.