NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
NetSim::Logger Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ clean()

void Logger::clean ( )
static

Cleans up resources used by the logger.

This method should be called once after all logging is done.

Here is the caller graph for this function:

◆ init()

void Logger::init ( )
static

Initializes the logger.

This method should be called once before using the other logging methods.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ messageOutput()

void Logger::messageOutput ( QtMsgType  type,
const QMessageLogContext &  context,
const QString &  msg 
)
static

Outputs log messages based on their type and context.

Parameters
typeThe type of the message (e.g., debug, warning, error).
contextInformation about the source code location of the message.
msgThe actual log message.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: