2019-03-03 04:08:54 +01:00
|
|
|
disableLog() Netscript Function
|
|
|
|
===============================
|
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. js:function:: disableLog(functionName)
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
:RAM cost: 0 GB
|
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
:param string functionName: Name of function for which to disable logging.
|
|
|
|
|
2019-03-03 04:08:54 +01:00
|
|
|
Disables logging for the given function. Logging can be disabled for
|
2023-01-30 19:51:00 +01:00
|
|
|
all functions by passing 'ALL' as the argument. Print() can always print to log.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
.. code-block:: javascript
|
|
|
|
|
|
|
|
//Opens the logs, clears it of whatever may have been there before and prevents non-print() functions from logging
|
|
|
|
ns.tail();ns.clearLog();ns.disableLog("ALL");
|