2019-03-03 04:08:54 +01:00
|
|
|
enableLog() Netscript Function
|
2019-03-20 01:53:46 +01:00
|
|
|
==============================
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. js:function:: enableLog(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 enable logging.
|
|
|
|
|
|
|
|
Re-enables logging for the given function. If 'ALL' is passed into this
|
|
|
|
function as an argument, then it will revert the effects of
|
|
|
|
``disableLog('ALL')``
|
2023-01-30 19:51:00 +01:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
.. code-block:: javascript
|
|
|
|
|
|
|
|
//Opens the logs, clears it of whatever may have been there before and prevents non-print() functions from printing to log
|
|
|
|
ns.tail();ns.clearLog();ns.disableLog("ALL");
|
|
|
|
//let hack() log normally
|
|
|
|
ns.enableLog("hack");
|