31constexpr auto LOGGING_CONFIG_DEFAULT_MAX_FILE_SIZE =
32 static_cast<std::size_t
>(1024 * 1024);
35constexpr auto LOGGING_CONFIG_DEFAULT_MAX_FILES =
static_cast<std::size_t
>(5);
38constexpr auto LOGGING_CONFIG_DEFAULT_OUTPUT_LOG_LEVEL =
56 "Maximum size of a file must be greater than 0.");
65 "Maximum number of files must be greater than 0.");
82 StatusCode::INVALID_ARGUMENT,
"Invalid log level.");
Class of exceptions in cpp-msgpack-rpc library.
logging::LogLevel output_log_level() const noexcept
Get the log level to write logs.
std::size_t max_file_size_
Maximum size of a file.
std::string file_path_
File path.
std::string_view file_path() const noexcept
Get the file path.
std::size_t max_files_
Maximum number of files.
std::size_t max_files() const noexcept
Get the maximum number of files.
LoggingConfig()
Constructor.
logging::LogLevel output_log_level_
Log level to write logs.
std::size_t max_file_size() const noexcept
Get the maximum size of a file.
Definition of LogLevel enumeration.
Definition of LoggingConfig class.
Definition of MsgpackRPCException class.
Namespace of configurations.
LogLevel
Enumeration of log levels.
@ TRACE
Trace. (Internal operations to send and receive messages.)
@ WARN
Warnings. (Unexpected conditions which don't stop operations.)
@ INFO
Information. (Not used in this library.)
@ CRITICAL
Critical. (Unexpected conditions which can stop all operations in communication.)
@ ERROR
Error. (Unexpected conditions which stop some operations in communication.)
@ DEBUG
Debug. (Log of messages, initialization and finalization of clients and servers.)
Definition of StatusCode enumeration.