BIS fnc logFormat: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *codecomment *\| *\/\/ *([^ ]+) *\}\} " to "{{cc|$1}}") |
Lou Montana (talk | contribs) m (revert + fix) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|1.00 | |version1= 1.00 | ||
|gr1 = Diagnostic | |gr1= Diagnostic | ||
| Display debug message. | |descr= Display debug message. | ||
{{Informative|'''allowFunctionsLog''' has to be set to '''1''' in the [[ | {{Informative|'''allowFunctionsLog''' has to be set to '''1''' in the [[Description.ext]] for this function to work.}} | ||
| [ | |s1= [text, parameters] call [[BIS_fnc_logFormat]] | ||
|p1= ''' | |p1= '''text''': [[String]] - formatted message or first param | ||
| [[Boolean]] - [[true]] when done | |p2= '''parameters''': [[Anything]] - (Optional) additional parameters | ||
|r1= [[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; | ||
{{cc| RPT output:}}{{ | {{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> | |||
| [[BIS_fnc_log]] | |seealso= [[BIS_fnc_log]] | ||
}} | }} | ||
Revision as of 21:14, 29 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: 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