cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class of Logging configuration. More...
#include <msgpack_rpc/config/logging_config.h>
Public Member Functions | |
LoggingConfig () | |
Constructor. | |
std::string_view | file_path () const noexcept |
Get the file path. | |
LoggingConfig & | file_path (std::string_view value) |
Set the file path. | |
std::size_t | max_file_size () const noexcept |
Get the maximum size of a file. | |
LoggingConfig & | max_file_size (std::size_t value) |
Set the maximum size of a file. | |
std::size_t | max_files () const noexcept |
Get the maximum number of files. | |
LoggingConfig & | max_files (std::size_t value) |
Set the maximum number of files. | |
logging::LogLevel | output_log_level () const noexcept |
Get the log level to write logs. | |
LoggingConfig & | output_log_level (logging::LogLevel value) |
Set the log level to write logs. |
Private Attributes | |
std::string | file_path_ |
File path. | |
std::size_t | max_file_size_ |
Maximum size of a file. | |
std::size_t | max_files_ |
Maximum number of files. | |
logging::LogLevel | output_log_level_ |
Log level to write logs. |
Class of Logging configuration.
Definition at line 34 of file logging_config.h.
msgpack_rpc::config::LoggingConfig::LoggingConfig | ( | ) |
Constructor.
Definition at line 43 of file logging_config.cpp.
|
nodiscardnoexcept |
Get the file path.
Definition at line 88 of file logging_config.cpp.
LoggingConfig & msgpack_rpc::config::LoggingConfig::file_path | ( | std::string_view | value | ) |
Set the file path.
[in] | value | Value. |
Definition at line 48 of file logging_config.cpp.
|
nodiscardnoexcept |
Get the maximum size of a file.
Definition at line 92 of file logging_config.cpp.
LoggingConfig & msgpack_rpc::config::LoggingConfig::max_file_size | ( | std::size_t | value | ) |
Set the maximum size of a file.
[in] | value | Value. |
Definition at line 53 of file logging_config.cpp.
|
nodiscardnoexcept |
Get the maximum number of files.
Definition at line 96 of file logging_config.cpp.
LoggingConfig & msgpack_rpc::config::LoggingConfig::max_files | ( | std::size_t | value | ) |
Set the maximum number of files.
[in] | value | Value. |
Definition at line 62 of file logging_config.cpp.
|
nodiscardnoexcept |
Get the log level to write logs.
Definition at line 98 of file logging_config.cpp.
LoggingConfig & msgpack_rpc::config::LoggingConfig::output_log_level | ( | logging::LogLevel | value | ) |
Set the log level to write logs.
[in] | value | Value. |
Definition at line 71 of file logging_config.cpp.
|
private |
File path.
Definition at line 107 of file logging_config.h.
|
private |
Maximum size of a file.
Definition at line 110 of file logging_config.h.
|
private |
Maximum number of files.
Definition at line 113 of file logging_config.h.
|
private |
Log level to write logs.
Definition at line 116 of file logging_config.h.