BIS fnc logFormat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Now has the correct layout.)
m (Text replacement - "\|game([0-9])= *([^ ]+) * +\|version([0-9])= *([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
(27 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.00


|1.00|= Game version
|gr1= Diagnostic


____________________________________________________________________________________________
|descr= Display debug message.
{{Feature|Informative|'''allowFunctionsLog''' has to be set to '''1''' in the [[Description.ext]] for this function to work.}}


| Display debug message. |= Description
|s1= [text, parameters] call [[BIS_fnc_logFormat]]
____________________________________________________________________________________________


| [Text, <Parameters>] call [[BIS_fnc_logFormat]]; |= Syntax
|p1= '''text''': [[String]] - formatted message or first param


|p1= '''Text''': [[String]] - Formatted message or first param |=
|p2= '''parameters''': [[Anything]] - (Optional) additional parameters
|p2= '''Parameters''': [[Any Value]] - Optional, additional parameters |=


|r1= [[Boolean]] - [[true]] when done


| [[Boolean]] - [[true]] when done |= Return value
|x1= <code>["My logged name: %1, My position: %2", name player, getPos player] call BIS_fnc_logFormat;
____________________________________________________________________________________________
{{cc|RPT output:}}
 
{{cc|12:34:56 "BIS_fnc_log: [BIS_fnc_debugConsoleExec] My logged name: Miller, My position: [4866.73,21947.9,0.00143433]"}}</code>
|x1= <code>["my message goes here"] [[call]] [[BIS_fnc_logFormat]];</code> |=
 
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_log]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Arma 3:_Functions|logFormat]]

Revision as of 11:12, 14 June 2021

Hover & click on the images for description

Description

Description:
Display debug message.
allowFunctionsLog has to be set to 1 in the Description.ext for this function to work.
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
[text, parameters] call BIS_fnc_logFormat
Parameters:
text: String - formatted message or first param
parameters: Anything - (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