A concrete implementation of FormativeFactory for standard log formatting.
More...
#include <StandardFormater.h>
A concrete implementation of FormativeFactory for standard log formatting.
This class provides configurable formatting options for log messages, including timestamp, file, line, and function information display.
◆ formativeFactory()
QString StandardFormater::formativeFactory |
( |
QtMsgType |
type, |
|
|
const QMessageLogContext & |
context, |
|
|
const QString & |
msg |
|
) |
| |
|
overridevirtual |
Formats a log message according to configured options.
- Parameters
-
type | The log message type (debug, warning, etc.) |
context | The log message context (file, line, function) |
msg | The actual log message |
- Returns
- Formatted log message as QString
Implements FormativeFactory.
◆ options()
Get current formatting options.
- Returns
- Current formatting options
◆ setOptions()
Set all formatting options at once.
- Parameters
-
options | The complete set of formatting options |
◆ setShowFile()
void StandardFormater::setShowFile |
( |
bool |
enable | ) |
|
Enable/disable source file display.
- Parameters
-
enable | True to show file names, false to hide |
◆ setShowFunction()
void StandardFormater::setShowFunction |
( |
bool |
enable | ) |
|
Enable/disable function name display.
- Parameters
-
enable | True to show function names, false to hide |
◆ setShowLine()
void StandardFormater::setShowLine |
( |
bool |
enable | ) |
|
Enable/disable line number display.
- Parameters
-
enable | True to show line numbers, false to hide |
◆ setShowTimestamp()
void StandardFormater::setShowTimestamp |
( |
bool |
enable | ) |
|
Enable/disable timestamp display.
- Parameters
-
enable | True to show timestamps, false to hide |
The documentation for this class was generated from the following files:
- core/loggers/base_components/format_factory/standard_format/StandardFormater.h
- core/loggers/base_components/format_factory/standard_format/StandardFormater.cpp