Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
logtemplates.c File Reference

Go to the source code of this file.

Data Structures

class  LogTemplates

Typedefs

typedef Param3< string, string, stringLogTemplate
typedef int LogTemplateID

Functions

static LogTemplate GetTemplate (LogTemplateID template_id)
static void Init ()
class LogTemplates Log (string message, LogTemplateID template_id=0)
 Creates debug 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 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 RegisterLogTamplate (LogTemplateID template_id, string author, string plugin, string label)
void SQFLog (string sqf_msg)
void SQFPrint (string sqf_msg)

Variables

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

Typedef Documentation

◆ LogTemplate

Definition at line 1 of file logtemplates.c.

◆ LogTemplateID

typedef int LogTemplateID

Definition at line 2 of file logtemplates.c.

Function Documentation

◆ GetTemplate()

LogTemplate GetTemplate ( LogTemplateID template_id)
staticprivate

Definition at line 119 of file logtemplates.c.

◆ Init()

void Init ( )
staticprivate

Definition at line 107 of file logtemplates.c.

◆ Log()

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

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

Parameters
template_idLogTemplateID ID of LogTemplate which was registred in proto/Logtemplate.h -> "class LogTemplates"
messagestring Debug message for log
Returns
void
Log("This is some debug log message", TEMPLATE_JINDRICH);
>> output to scriptExt.log (for GamutLogViewer)
class LogTemplates Log(string message, LogTemplateID template_id=0)
Creates debug log (optional) from LogTemplate which are registred.

Definition at line 2 of file logtemplates.c.

Referenced by Debug(), UIPopupScript::OnClick(), PluginFileHandler::SaveParameter(), and SQFLog().

◆ LogError()

void LogError ( string message,
LogTemplateID template_id = 0 )

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

Parameters
template_idLogTemplateID ID of LogTemplate which was registred in proto/Logtemplate.h -> "class LogTemplates"
messagestring Error message for log
Returns
void
LogT(TEMPLATE_JINDRICH, "This is some error log message");
>> output to scriptExt.log (for GamutLogViewer)

Definition at line 129 of file logtemplates.c.

References LogTemplates::GetTemplate(), and Debug::LogError().

◆ LogInfo()

void LogInfo ( string message,
LogTemplateID template_id = 0 )

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

Parameters
template_idLogTemplateID ID of LogTemplate which was registred in proto/Logtemplate.h -> "class LogTemplates"
messagestring Info message for log
Returns
void
LogInfo("This is some info log message", TEMPLATE_JINDRICH);
>> output to scriptExt.log (for GamutLogViewer)
void LogInfo(string message, LogTemplateID template_id=0)
Creates info log (optional) from LogTemplate which are registred.

Definition at line 93 of file logtemplates.c.

References LogTemplates::GetTemplate(), and Debug::LogInfo().

◆ LogWarning()

void LogWarning ( string message,
LogTemplateID template_id = 0 )

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

Parameters
template_idLogTemplateID ID of LogTemplate which was registred in proto/Logtemplate.h -> "class LogTemplates"
messagestring Warning message for log
Returns
void
LogT(TEMPLATE_JINDRICH, "This is some warning log message");
>> output to scriptExt.log (for GamutLogViewer)

Definition at line 111 of file logtemplates.c.

References LogTemplates::GetTemplate(), and Debug::LogWarning().

◆ RegisterLogTamplate()

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

Definition at line 78 of file logtemplates.c.

◆ SQFLog()

void SQFLog ( string sqf_msg)

Definition at line 141 of file logtemplates.c.

References Log().

◆ SQFPrint()

void SQFPrint ( string sqf_msg)

Definition at line 136 of file logtemplates.c.

References Print().

Variable Documentation

◆ m_LogTemplates

ref map<LogTemplateID, ref LogTemplate> m_LogTemplates
staticprivate

Definition at line 76 of file logtemplates.c.

◆ TEMPLATE_BROADCAST

LogTemplateID TEMPLATE_BROADCAST = 3
staticprivate

Definition at line 105 of file logtemplates.c.

◆ TEMPLATE_JANOSIK

LogTemplateID TEMPLATE_JANOSIK = 1
staticprivate

Definition at line 103 of file logtemplates.c.

◆ TEMPLATE_PLAYER_WEIGHT

LogTemplateID TEMPLATE_PLAYER_WEIGHT = 2
staticprivate

Definition at line 104 of file logtemplates.c.

◆ TEMPLATE_UNKNOWN

LogTemplateID TEMPLATE_UNKNOWN = 0
staticprivate

Definition at line 102 of file logtemplates.c.