DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл LogTemplates.c

См. исходные тексты.

Структуры данных

class  LogTemplates
 

Определения типов

typedef Param3< string, string, stringLogTemplate
 
typedef int LogTemplateID
 

Функции

class LogTemplates Log (string message, LogTemplateID template_id=0)
 Creates debug log (optional) from LogTemplate which are registred.
 
void RegisterLogTamplate (LogTemplateID template_id, string author, string plugin, string label)
 
static void Init ()
 
static LogTemplate GetTemplate (LogTemplateID template_id)
 
void LogInfo (string message, LogTemplateID template_id=0)
 Creates info log (optional) from LogTemplate which are registred.
 
void LogWarning (string message, LogTemplateID template_id=0)
 Creates warning log (optional) from LogTemplate which are registred.
 
void LogError (string message, LogTemplateID template_id=0)
 Creates error log (optional) from LogTemplate which are registred.
 
void SQFPrint (string sqf_msg)
 
void SQFLog (string sqf_msg)
 

Переменные

ref map< LogTemplateID, ref LogTemplatem_LogTemplates
 
static LogTemplateID TEMPLATE_UNKNOWN = 0
 
static LogTemplateID TEMPLATE_JANOSIK = 1
 
static LogTemplateID TEMPLATE_PLAYER_WEIGHT = 2
 
static LogTemplateID TEMPLATE_BROADCAST = 3
 

Типы

◆ LogTemplate

◆ LogTemplateID

Функции

◆ GetTemplate()

static LogTemplate GetTemplate ( LogTemplateID template_id)
staticprivate
130{
132
134}
135
136void SQFPrint(string sqf_msg)
137{
138 Print(sqf_msg);
139}
140
141void SQFLog(string sqf_msg)
142{
143 Log(sqf_msg);
144}
void SQFPrint(string sqf_msg)
Definition LogTemplates.c:136
void SQFLog(string sqf_msg)
Definition LogTemplates.c:141
class LogTemplates Log(string message, LogTemplateID template_id=0)
Creates debug log (optional) from LogTemplate which are registred.
Definition LogTemplates.c:75
Definition Debug.c:14
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
Definition Debug.c:259
Definition LogTemplates.c:8
static LogTemplate GetTemplate(LogTemplateID template_id)
Definition LogTemplates.c:52
Definition EntityAI.c:95
proto void Print(void var)
Prints content of variable to console/log.

◆ Init()

static void Init ( )
staticprivate
112{
114
116}
117
static void LogWarning(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as warning message.
Definition Debug.c:244

◆ Log()

class LogTemplates Log ( string message,
LogTemplateID template_id = 0 )

Creates debug log (optional) from LogTemplate which are registred.

Аргументы
template_idLogTemplateID ID of LogTemplate which was registred in proto/Logtemplate.h -> "class LogTemplates"
messagestring Debug message for log
Возвращает
void
Log("This is some debug log message", TEMPLATE_JINDRICH);
76{
78
79 Debug.Log(message, log_template.param2, log_template.param1, log_template.param3);
80}
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Definition Debug.c:136

Используется в PluginBase::CheckInit(), Debug(), UIPopupScript::OnClick(), PluginFileHandler::SaveParameter() и SQFLog().

◆ LogError()

void LogError ( string message,
LogTemplateID template_id = 0 )

Creates error log (optional) from LogTemplate which are registred.

Аргументы
template_idLogTemplateID ID of LogTemplate which was registred in proto/Logtemplate.h -> "class LogTemplates"
messagestring Error message for log
Возвращает
void
LogT(TEMPLATE_JINDRICH, "This is some error log message");

Перекрестные ссылки LogTemplates::GetTemplate() и Debug::LogError().

Используется в GameInventory::OnServerInventoryCommandStatic().

◆ LogInfo()

void LogInfo ( string message,
LogTemplateID template_id = 0 )

Creates info log (optional) from LogTemplate which are registred.

Аргументы
template_idLogTemplateID ID of LogTemplate which was registred in proto/Logtemplate.h -> "class LogTemplates"
messagestring Info message for log
Возвращает
void
LogInfo("This is some info log message", TEMPLATE_JINDRICH);
void LogInfo(string message, LogTemplateID template_id=0)
Creates info log (optional) from LogTemplate which are registred.
Definition LogTemplates.c:93
94{
96
98}
static void LogInfo(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Definition Debug.c:229

Перекрестные ссылки LogTemplates::GetTemplate() и Debug::LogInfo().

◆ LogWarning()

void LogWarning ( string message,
LogTemplateID template_id = 0 )

Creates warning log (optional) from LogTemplate which are registred.

Аргументы
template_idLogTemplateID ID of LogTemplate which was registred in proto/Logtemplate.h -> "class LogTemplates"
messagestring Warning message for log
Возвращает
void
LogT(TEMPLATE_JINDRICH, "This is some warning log message");

Перекрестные ссылки LogTemplates::GetTemplate() и Debug::LogWarning().

◆ RegisterLogTamplate()

void RegisterLogTamplate ( LogTemplateID template_id,
string author,
string plugin,
string label )
staticprivate
94{

◆ SQFLog()

void SQFLog ( string sqf_msg)
142{
143 Log(sqf_msg);
144}

Перекрестные ссылки Log().

◆ SQFPrint()

void SQFPrint ( string sqf_msg)
137{
138 Print(sqf_msg);
139}

Перекрестные ссылки Print().

Переменные

◆ m_LogTemplates

ref map<LogTemplateID, ref LogTemplate> m_LogTemplates
staticprivate

◆ TEMPLATE_BROADCAST

LogTemplateID TEMPLATE_BROADCAST = 3
staticprivate

◆ TEMPLATE_JANOSIK

LogTemplateID TEMPLATE_JANOSIK = 1
staticprivate

◆ TEMPLATE_PLAYER_WEIGHT

LogTemplateID TEMPLATE_PLAYER_WEIGHT = 2
staticprivate

◆ TEMPLATE_UNKNOWN

LogTemplateID TEMPLATE_UNKNOWN = 0
staticprivate