{"name":"BIS_fnc_logFormatServer","title":"BIS fnc logFormatServer","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_logFormatServer","revid":351746,"updated":"2023-12-30T21:45:26Z","groups":["Diagnostic"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Logs (using diag_log) a debug message (profileName, playerUID, _fnc_scriptName, provided text) to **server**'s .RPT. In singleplayer, BIS_fnc_logFormat is used.\n\n> [!NOTE]\n> `allowFunctionsLog` has to be set to **1** in Description.ext for this function to have any effect.","syntaxes":[{"syntax":"[text, argument1, argument2, ...] call BIS_fnc_logFormatServer","params":[{"name":"text","type":"String or Anything","description":"text using format standard (with %). Any non-String value will be converted (with str)","type_expr":"String | Anything"},{"name":"argument1..n","type":"Anything","description":"same as format arguments - referenced in *text* as %1, %2 etc","type_expr":"Anything"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true when done"}}],"examples":[{"text":"```sqf\nprivate _currentFPS = diag_fps;\nif (_currentFPS < 10) then\n{\n    [\"Player %1 has performance issues (%2 FPS)\", name player, _currentFPS] call BIS_fnc_logFormatServer;\n};\n```","code":["private _currentFPS = diag_fps;\nif (_currentFPS < 10) then\n{\n\t[\"Player %1 has performance issues (%2 FPS)\", name player, _currentFPS] call BIS_fnc_logFormatServer;\n};"]}],"see_also":["BIS_fnc_error","BIS_fnc_logFormat","BIS_fnc_errorMsg","BIS_fnc_log"]}