BIS fnc logFormat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(better example with actual use of parameters)
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 8: Line 7:
|gr1 = Diagnostic |GROUP1=
|gr1 = Diagnostic |GROUP1=


____________________________________________________________________________________________


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


| [Text, Parameters] call [[BIS_fnc_logFormat]]; |SYNTAX=
| [Text, Parameters] call [[BIS_fnc_logFormat]]; |SYNTAX=
Line 21: Line 18:


| [[Boolean]] - [[true]] when done |RETURNVALUE=
| [[Boolean]] - [[true]] when done |RETURNVALUE=
____________________________________________________________________________________________
   
   
|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;
Line 27: Line 23:
{{codecomment|// 12:34:56 "BIS_fnc_log: [BIS_fnc_debugConsoleExec] My logged name: Miller, My position: [4866.73,21947.9,0.00143433]"}}</code> |EXAMPLE1=
{{codecomment|// 12:34:56 "BIS_fnc_log: [BIS_fnc_debugConsoleExec] My logged name: Miller, My position: [4866.73,21947.9,0.00143433]"}}</code> |EXAMPLE1=


____________________________________________________________________________________________


| [[BIS_fnc_log]] |SEEALSO=
| [[BIS_fnc_log]] |SEEALSO=

Revision as of 23:27, 16 January 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: 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

Notes

Bottom Section