BIS fnc logFormat: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Diagnostic | |gr1 = Diagnostic | ||
| Display debug message. | | Display debug message. | ||
{{Informative|'''allowFunctionsLog''' has to be set to '''1''' in the [[description.ext]] for this function to work.}} | {{Informative|'''allowFunctionsLog''' has to be set to '''1''' in the [[description.ext]] for this function to work.}} | ||
| [Text, Parameters] call [[BIS_fnc_logFormat]]; | | [Text, Parameters] call [[BIS_fnc_logFormat]]; | ||
|p1= '''Text''': [[String]] - Formatted message or first param | |p1= '''Text''': [[String]] - Formatted message or first param | ||
|p2= '''Parameters''': [[Any]] values - Optional, additional parameters | |p2= '''Parameters''': [[Any]] values - Optional, additional parameters | ||
| [[Boolean]] - [[true]] when done | | [[Boolean]] - [[true]] when done | ||
|x1= <code>["My logged name: %1, My position: %2", name player, getPos player] call BIS_fnc_logFormat; | |x1= <code>["My logged name: %1, My position: %2", name player, getPos player] call BIS_fnc_logFormat; | ||
{{codecomment|// RPT output:}} | {{codecomment|// RPT output:}} | ||
{{codecomment|// 12:34:56 "BIS_fnc_log: [BIS_fnc_debugConsoleExec] My logged name: Miller, My position: [4866.73,21947.9,0.00143433]"}}</code> | {{codecomment|// 12:34:56 "BIS_fnc_log: [BIS_fnc_debugConsoleExec] My logged name: Miller, My position: [4866.73,21947.9,0.00143433]"}}</code> | ||
| [[BIS_fnc_log]] | | [[BIS_fnc_log]] | ||
}} | }} |
Revision as of 23:08, 17 January 2021
Description
- Description:
- Display debug message.
- Execution:
- call
- Groups:
- Diagnostic
Syntax
- Syntax:
- [Text, Parameters] call BIS_fnc_logFormat;
- Parameters:
- Text: String - Formatted message or first param
- Parameters: Any values - Optional, additional parameters
- Return Value:
- Boolean - true when done
Examples
- Example 1:
["My logged name: %1, My position: %2", name player, getPos player] call BIS_fnc_logFormat; // RPT output: // 12:34:56 "BIS_fnc_log: [BIS_fnc_debugConsoleExec] My logged name: Miller, My position: [4866.73,21947.9,0.00143433]"
Additional Information
- See also:
- BIS_fnc_log
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note