NetSim 1.0.0
An educational network simulation software for students
|
A utility class that provides static methods for logging messages. More...
#include <logger.h>
Static Public Member Functions | |
static void | init () |
Initializes the logger. | |
static void | clean () |
Cleans up resources used by the logger. | |
static void | messageOutput (QtMsgType type, const QMessageLogContext &context, const QString &msg) |
Outputs log messages based on their type and context. | |
A utility class that provides static methods for logging messages.
The Logger class handles the initialization, cleanup, and output of logging messages. It uses a QHash to associate QtMsgTypes with their respective context names.
|
static |
Cleans up resources used by the logger.
This method should be called once after all logging is done.
|
static |
Initializes the logger.
This method should be called once before using the other logging methods.
|
static |
Outputs log messages based on their type and context.
type | The type of the message (e.g., debug, warning, error). |
context | Information about the source code location of the message. |
msg | The actual log message. |