EZLog
Loading...
Searching...
No Matches
EZLog::Lib Class Reference

logger lib More...

#include <Logger.h>

Static Public Member Functions

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.
 

Detailed Description

logger lib

Member Function Documentation

◆ Critical()

static void EZLog::Lib::Critical ( const QString &  msg)
static

Record critical-level information in the log.

Parameters
msginformation to be logged

◆ Debug()

static void EZLog::Lib::Debug ( const QString &  msg)
static

Record debug-level information in the log.

Parameters
msginformation 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
msginformation to be logged

◆ Info()

static void EZLog::Lib::Info ( const QString &  msg)
static

Record info-level information in the log.

Parameters
msginformation 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
projectproject name
prefixlog file prefix
dirlog storage location
multi_threadwhether 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
msginformation to be logged

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