{"name":"BIS_fnc_logFormatServer","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"text","type":"String or Anything","optional":false,"default":null,"description":"text using format standard (with %). Any non-String value will be converted (with str)","types":["String","Anything"],"since":null,"text":"text: String or Anything - text using format standard (with %). Any non-String value will be converted (with str)"},{"name":"argument1..n","type":"Anything","optional":false,"default":null,"description":"same as format arguments - referenced in *text* as %1, %2 etc","types":["Anything"],"since":null,"text":"argument1..n: Anything - same as format arguments - referenced in *text* as %1, %2 etc"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when done","text":"Boolean - 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};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_error","BIS_fnc_logFormat","BIS_fnc_errorMsg","BIS_fnc_log"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Diagnostic","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}