Arma 3 Scripting

Function in Diagnostic

BIS_fnc_logFormatServer

Also available as Markdown and JSON, or read the original wiki page.

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.

Note

allowFunctionsLog has to be set to 1 in Description.ext for this function to have any effect.

Syntax

[text, argument1, argument2, ...] call BIS_fnc_logFormatServer

Parameters:

Returns: Boolean - true when done

Examples

Example 1

private _currentFPS = diag_fps;
if (_currentFPS < 10) then
{
    ["Player %1 has performance issues (%2 FPS)", name player, _currentFPS] call BIS_fnc_logFormatServer;
};

See also

BIS_fnc_error · BIS_fnc_logFormat · BIS_fnc_errorMsg · BIS_fnc_log