|
cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Namespace of logging. More...
Namespaces | |
| namespace | impl |
| Namespace of internal implementations. | |
Classes | |
| class | ILogSink |
| Interface of log sinks to write logs. More... | |
| class | Logger |
| Class to write logs. More... | |
| class | SourceLocationView |
| Class of locations in source codes. More... | |
Enumerations | |
| enum class | LogLevel : std::uint8_t { TRACE , DEBUG , INFO , WARN , ERROR , CRITICAL } |
| Enumeration of log levels. More... | |
Functions | |
| std::shared_ptr< ILogSink > | create_log_sink_from_config (const config::LoggingConfig &config) |
| Create a log sink from a configuration. | |
| std::shared_ptr< ILogSink > | 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 > | create_stdout_log_sink () |
| Create a log sink to write to standard output. | |
| std::shared_ptr< ILogSink > | create_stdout_log_sink_impl () |
| Create a log sink to write to standard output. | |
Namespace of logging.
|
strong |
Enumeration of log levels.
Definition at line 29 of file log_level.h.
|
nodiscard |
Create a log sink from a configuration.
| [in] | config | Configuration of logging. |
Definition at line 66 of file log_sinks.cpp.
|
nodiscard |
Create a log sink to write to a file with rotation.
| [in] | file_path | File path. |
| [in] | max_file_size | Maximum size of a file. |
| [in] | max_files | Maximum number of files. |
Definition at line 55 of file log_sinks.cpp.
|
nodiscard |
Create a log sink to write to standard output.
Definition at line 50 of file log_sinks.cpp.
| std::shared_ptr< ILogSink > msgpack_rpc::logging::create_stdout_log_sink_impl | ( | ) |
Create a log sink to write to standard output.
Definition at line 42 of file log_sinks.cpp.