The RotatingSink class.
More...
#include <RotatingSink.h>
|
| | RotatingSink (fs::path const &filename, RotatingFileSinkConfig const &config, FileEventNotifier file_event_notifier=FileEventNotifier{}, std::chrono::system_clock::time_point start_time=std::chrono::system_clock::now()) |
| | Constructor. More...
|
| |
| QUILL_ATTRIBUTE_HOT void | write_log (MacroMetadata const *log_metadata, uint64_t log_timestamp, std::string_view thread_id, std::string_view thread_name, std::string const &process_id, std::string_view logger_name, LogLevel log_level, std::string_view log_level_description, std::string_view log_level_short_code, std::vector< std::pair< std::string, std::string >> const *named_args, std::string_view log_message, std::string_view log_statement) override |
| | Writes a formatted log message to the stream. More...
|
| |
template<typename TBase>
class RotatingSink< TBase >
The RotatingSink class.
◆ RotatingSink()
template<typename TBase >
Constructor.
Creates a new instance of the RotatingSink class.
- Parameters
-
| filename | The base file name to be used for logs. |
| config | The sink configuration. |
| file_event_notifier | file event notifier |
| start_time | start time |
◆ write_log()
template<typename TBase >
| QUILL_ATTRIBUTE_HOT void RotatingSink< TBase >::write_log |
( |
MacroMetadata const * |
log_metadata, |
|
|
uint64_t |
log_timestamp, |
|
|
std::string_view |
thread_id, |
|
|
std::string_view |
thread_name, |
|
|
std::string const & |
process_id, |
|
|
std::string_view |
logger_name, |
|
|
LogLevel |
log_level, |
|
|
std::string_view |
log_level_description, |
|
|
std::string_view |
log_level_short_code, |
|
|
std::vector< std::pair< std::string, std::string >> const * |
named_args, |
|
|
std::string_view |
log_message, |
|
|
std::string_view |
log_statement |
|
) |
| |
|
inlineoverride |
Writes a formatted log message to the stream.
- Parameters
-
| log_metadata | The metadata of the log message |
| log_timestamp | The timestamp of the log message |
| thread_id | The ID of the thread that generated the log message |
| thread_name | The name of the thread that generated the log message |
| process_id | Process Id |
| logger_name | logger name |
| log_level | Log level of the message. |
| log_level_description | Description of the log level. |
| log_level_short_code | Short code representing the log level. |
| named_args | Structured key-value pairs associated with the log message |
| log_message | The log message to write |
| log_statement | The full log statement |
The documentation for this class was generated from the following file: