---
name: "BIS_fnc_logFormatServer"
type: function
status: ok
groups: ["Diagnostic"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_logFormatServer
revid: 351746
updated: 2023-12-30T21:45:26Z
---

# BIS_fnc_logFormatServer

*Function · Diagnostic · Arma 3 v1.00*

## Description

Logs (using [diag_log](../commands/diag_log.md)) a debug message ([profileName](../commands/profileName.md), [playerUID](../commands/getPlayerUID.md), [_fnc_scriptName](../topics/Magic_Variables.md#fnc_scriptname), provided text) to **server**'s .RPT. In singleplayer, [BIS_fnc_logFormat](../functions/BIS_fnc_logFormat.md) is used.

> [!NOTE]
> `allowFunctionsLog` has to be set to **1** in [Description.ext](../topics/Description.ext.md) for this function to have any effect.

## Syntax

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

**Parameters:**

- `text`: [String](../topics/String.md) or [Anything](../topics/Anything.md) - text using [format](../commands/format.md) standard (with %). Any non-[String](../topics/String.md) value will be converted (with [str](../commands/str.md))
- `argument1..n`: [Anything](../topics/Anything.md) - same as [format](../commands/format.md) arguments - referenced in *text* as %1, %2 etc

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when done

## Examples

### Example 1

```sqf
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](../functions/BIS_fnc_error.md) · [BIS_fnc_logFormat](../functions/BIS_fnc_logFormat.md) · [BIS_fnc_errorMsg](../functions/BIS_fnc_errorMsg.md) · [BIS_fnc_log](../functions/BIS_fnc_log.md)

<sub>Source: [BI Community Wiki — BIS fnc logFormatServer](https://community.bistudio.com/wiki/BIS_fnc_logFormatServer) (revision 351746).</sub>
