CPP04 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
Logger.hpp ファイル

Defines the Logger class for console-based logging. [詳解]

#include <iostream>
#include <string>
Logger.hpp の依存先関係図:
被依存関係図:

[ソースコード]

クラス

class  Logger
 The Logger class provides static methods for logging messages. [詳解]
 

マクロ定義

#define LOG_INFO(msg)
 Macro for logging informational messages.
 
#define LOG_WARNING(msg)
 Macro for logging warning messages.
 
#define LOG_ERROR(msg)
 

詳解

Defines the Logger class for console-based logging.

This header provides the declaration of the Logger class, including its log levels, constructors, destructors, copy operations, and the static method for logging messages. It also defines macros for conditional logging based on DEBUG_MODE.

Logger.hpp に定義があります。

マクロ定義詳解

◆ LOG_ERROR

#define LOG_ERROR (   msg)
値:
do { \
} while (0)

Logger.hpp93 行目に定義があります。

◆ LOG_INFO

#define LOG_INFO (   msg)
値:
do { \
} while (0)

Macro for logging informational messages.

Expands to a call to Logger::log(Logger::LOG_INFO, msg) only when DEBUG_MODE is defined. Otherwise, it expands to nothing, optimizing release builds.

引数
msgThe message string to log.

Logger.hpp70 行目に定義があります。

◆ LOG_WARNING

#define LOG_WARNING (   msg)
値:
do { \
} while (0)

Macro for logging warning messages.

Expands to a call to Logger::log(Logger::LOG_WARNING, msg) only when DEBUG_MODE is defined. Otherwise, it expands to nothing.

引数
msgThe message string to log.

Logger.hpp85 行目に定義があります。