DayZ 1.30
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 строка 593

594 {
595 if (g_Game == null || !LogManager.IsLogsEnable())
596 return string.Empty;
597
598 bool is_server_log = ( g_Game.IsServer() && g_Game.IsMultiplayer() );
599
600
601 // Formation output to external file
602 // %date{MM-dd HH:mm:ss} | %Enviroment | %Level | %Module | %Entity | %Author | %Label | %Message
603 string date = GetDate();
604 string env = "Client";
605 string msg = string.Empty;
606
607 if ( is_server_log )
608 {
609 env = "Server";
610 }
611
612 msg = string.Format("%1 | %2 | %3 | %4 | %5 | %6 | %7", date, env, level, plugin, entity, label, message);
613
614 if ( is_server_log )
615 {
616 SaveLog(msg);
617
618#ifdef DIAG_DEVELOPER // do not send log to clients on retail
619 Param1<string> msg_p = new Param1<string>(msg);
621#endif
622 }
623 else
624 {
625 SaveLog(msg);
626 }
627
628 return msg;
629 }
DayZGame g_Game
Определения DayZGame.c:4074
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:631
static string GetDate()
Определения 3_Game/DayZ/tools/Debug.c:684
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(), AutotestLog(), BaseBuildingLog(), BleedingChancesLog(), InventoryHFSMLog(), InventoryMoveLog(), InventoryReservationLog(), Log(), LogArrayInt(), LogArrayString(), LogError(), LogInfo(), LogWarning(), MeleeLog(), ParticleLog(), QuickbarLog(), RadioGameplayLog(), SymptomLog(), TFLog(), TriggerLog() и WeatherLog().