logger lib
More...
#include <Logger.h>
|
| static bool | Initialize (const QString &project="Project", const QString &prefix="log", const QString &dir="Logs/", bool multi_thread=true) |
| | Initialize Initialize log library.
|
| |
| static QString | errmsg () |
| | Error message. Used to retrieve error information when the log library fails to initialize.
|
| |
| static void | Debug (const QString &msg) |
| | Record debug-level information in the log.
|
| |
| static void | Info (const QString &msg) |
| | Record info-level information in the log.
|
| |
| static void | Warn (const QString &msg) |
| | Record warn-level information in the log.
|
| |
| static void | Error (const QString &msg) |
| | Record error-level information in the log.
|
| |
| static void | Critical (const QString &msg) |
| | Record critical-level information in the log.
|
| |
◆ Critical()
| static void EZLog::Lib::Critical |
( |
const QString & |
msg | ) |
|
|
static |
Record critical-level information in the log.
- Parameters
-
| msg | information to be logged |
◆ Debug()
| static void EZLog::Lib::Debug |
( |
const QString & |
msg | ) |
|
|
static |
Record debug-level information in the log.
- Parameters
-
| msg | information to be logged |
◆ errmsg()
| static QString EZLog::Lib::errmsg |
( |
| ) |
|
|
static |
Error message. Used to retrieve error information when the log library fails to initialize.
- Returns
- the error message
◆ Error()
| static void EZLog::Lib::Error |
( |
const QString & |
msg | ) |
|
|
static |
Record error-level information in the log.
- Parameters
-
| msg | information to be logged |
◆ Info()
| static void EZLog::Lib::Info |
( |
const QString & |
msg | ) |
|
|
static |
Record info-level information in the log.
- Parameters
-
| msg | information to be logged |
◆ Initialize()
| static bool EZLog::Lib::Initialize |
( |
const QString & |
project = "Project", |
|
|
const QString & |
prefix = "log", |
|
|
const QString & |
dir = "Logs/", |
|
|
bool |
multi_thread = true |
|
) |
| |
|
static |
Initialize Initialize log library.
- Parameters
-
| project | project name |
| prefix | log file prefix |
| dir | log storage location |
| multi_thread | whether to enable multi-thread mode |
- Returns
- whether the initialization was successful
◆ Warn()
| static void EZLog::Lib::Warn |
( |
const QString & |
msg | ) |
|
|
static |
Record warn-level information in the log.
- Parameters
-
| msg | information to be logged |
The documentation for this class was generated from the following file: