logNetwork: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *W([a-z ])" to "$1 - w$2")
 
(29 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
|arma3|= Game name
 
|1.56|= Game version
|game1= arma3
| Registers new log file recording a network traffic and returns handle of the log. |= Description
|version1= 1.56
| '''logNetwork''' logFile |= Syntax
 
|p1= logFile: [[String]] - Where to store the log |= PARAMETER1
|gr1= Multiplayer
|p2= |= PARAMETER2
 
| [[Number]] - handle for the logging |= RETURNVALUE
|gr2= Diagnostic
|x1= <code>_handle = '''logNetwork''' "myLog.txt";</code>|= EXAMPLE1
 
| [[logNetworkTerminate]] |= SEEALSO
|descr= Registers new log file recording a network traffic and returns handle of the log. The log file is saved inside the {{arma3}} root folder.
|  |= MPBEHAVIOUR
{{Feature|important|[[logNetwork]] can potentially create a large log file.}}
}}
 
|s1= [[logNetwork]] logFile
 
|p1= logFile: [[String]] - where to store the log


<h3 style='display:none'>Bottom Section</h3>
|p2= filter: [[Array]] of [[String]]s - ????
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]


<h3 style='display:none'>Notes</h3>
|r1= [[Number]] - handle for the logging
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_handle = logNetwork ["myLog.txt", [""]];</sqf>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
|seealso= [[logNetworkTerminate]]
<dl class="command_description">
}}
<dd class="notedate">Posted on March 15, 2016 - 04:47 (UTC)</dd>
<dt class="note">[[User:Will|Will]]</dt>
<dd class="note">
With his syntax i get an error... -> logNetwork "networkLog.txt";
<code> 5:37:06 Error in expression <logNetwork "networkLog.txt";>
5:37:06  Error position: <logNetwork "networkLog.txt";>
5:37:06  Error lognetwork: Typ Zeichenfolge(STRING), erwartet(except) Array
</code>
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 17:35, 8 November 2023

Hover & click on the images for description

Description

Description:
Registers new log file recording a network traffic and returns handle of the log. The log file is saved inside the Arma 3 root folder.
logNetwork can potentially create a large log file.
Groups:
MultiplayerDiagnostic

Syntax

Syntax:
logNetwork logFile
Parameters:
logFile: String - where to store the log
filter: Array of Strings - ????
Return Value:
Number - handle for the logging

Examples

Example 1:
_handle = logNetwork ["myLog.txt", [""]];

Additional Information

See also:
logNetworkTerminate

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