DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ LogMessage()

static string Debug::LogMessage ( string level,
string plugin,
string entity,
string author,
string label,
string message )
inlinestaticprivate

DEPRECATED.

См. определение в файле 3_Game/DayZ/tools/Debug.c строка 580

581 {
582 if (g_Game == null || !LogManager.IsLogsEnable())
583 return string.Empty;
584
585 bool is_server_log = ( g_Game.IsServer() && g_Game.IsMultiplayer() );
586
587
588 // Formation output to external file
589 // %date{MM-dd HH:mm:ss} | %Enviroment | %Level | %Module | %Entity | %Author | %Label | %Message
590 string date = GetDate();
591 string env = "Client";
592 string msg = string.Empty;
593
594 if ( is_server_log )
595 {
596 env = "Server";
597 }
598
599 msg = string.Format("%1 | %2 | %3 | %4 | %5 | %6 | %7", date, env, level, plugin, entity, label, message);
600
601 if ( is_server_log )
602 {
603 SaveLog(msg);
604
605#ifdef DIAG_DEVELOPER // do not send log to clients on retail
606 Param1<string> msg_p = new Param1<string>(msg);
608#endif
609 }
610 else
611 {
612 SaveLog(msg);
613 }
614
615 return msg;
616 }
DayZGame g_Game
Определения DayZGame.c:3942
const CallID CALL_ID_SEND_LOG
Определения Dispatcher.c:3
Param CallMethod(CallID call_id, Param params)
Определения Dispatcher.c:36
static void SaveLog(string log_message)
Определения 3_Game/DayZ/tools/Debug.c:618
static string GetDate()
Определения 3_Game/DayZ/tools/Debug.c:673
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.

Перекрестные ссылки CALL_ID_SEND_LOG, CallMethod(), string::Empty, string::Format(), g_Game, GetDate(), LogManager::IsLogsEnable() и SaveLog().

Используется в ActionLog(), BaseBuildingLog(), BleedingChancesLog(), InventoryHFSMLog(), InventoryMoveLog(), InventoryReservationLog(), Log(), LogArrayInt(), LogArrayString(), LogError(), LogInfo(), LogWarning(), MeleeLog(), ParticleLog(), QuickbarLog(), SymptomLog(), TFLog(), TriggerLog() и WeatherLog().