Go to the source code of this file.
|
| template<class out_it_t > |
| void | qx::append_time_string (out_it_t it, char_type chDateDelimiter, char_type chTimeDelimiter, std::chrono::system_clock::time_point time) noexcept |
| | Format time string to the buffer. More...
|
| |
| constexpr string_view | qx::get_verbosity_prefix (verbosity eVerbosity) noexcept |
| | Get verbosity prefix. More...
|
| |
| string | qx::format_message_qx (const category &category, verbosity eVerbosity, std::thread::id threadId, std::chrono::system_clock::time_point messageTime, string_view svFile, string_view svFunction, int nLine, string sMessage) noexcept |
| |
- Author
- Khrapov
- Date
- 13.02.2026
- Copyright
- © Nick Khrapov, 2026. All right reserved.
Definition in file logger_formatters.inl.
◆ append_time_string()
template<class out_it_t >
| void qx::append_time_string |
( |
out_it_t |
it, |
|
|
char_type |
chDateDelimiter, |
|
|
char_type |
chTimeDelimiter, |
|
|
std::chrono::system_clock::time_point |
time |
|
) |
| |
|
inlinenoexcept |
Format time string to the buffer.
- Template Parameters
-
| out_it_t | - output iterator type |
- Parameters
-
| it | - output iterator |
| chDateDelimiter | - char to use as delimiter in date part |
| chTimeDelimiter | - char to use as delimiter in time part |
| time | - time to append |
Definition at line 14 of file logger_formatters.inl.
◆ format_message_qx()
| string qx::format_message_qx |
( |
const category & |
category, |
|
|
verbosity |
eVerbosity, |
|
|
std::thread::id |
threadId, |
|
|
std::chrono::system_clock::time_point |
messageTime, |
|
|
string_view |
svFile, |
|
|
string_view |
svFunction, |
|
|
int |
nLine, |
|
|
string |
sMessage |
|
) |
| |
|
inlinenoexcept |
@brief The qx style log line formatter
@code Examples:
[08.01.2026_23:51:41] Time? Is it really that time again? [08.01.2026_23:51:41][CatCore] Time? Is it really that time again? [W][08.01.2026_23:51:41] Time? Is it really that time again? [W][08.01.2026_23:51:41][CatCore] Time? Is it really that time again?
- Parameters
-
| category | - code category |
| eVerbosity | - message verbosity |
| threadId | - thread where the log is called |
| messageTime | - message creation time |
| svFile | - file name string |
| svFunction | - function name string |
| nLine | - code line number |
| sMessage | - user message string |
- Return values
-
| - | the formatted log line (the same object as sMessage) |
Definition at line 64 of file logger_formatters.inl.
◆ get_verbosity_prefix()
| constexpr string_view qx::get_verbosity_prefix |
( |
verbosity |
eVerbosity | ) |
|
|
constexprnoexcept |
Get verbosity prefix.
- Parameters
-
| eVerbosity | - message verbosity |
- Return values
-
Definition at line 37 of file logger_formatters.inl.