Doc changes

This commit is contained in:
Mughur
2023-01-30 20:51:00 +02:00
parent 867236e153
commit 6369ab434b
17 changed files with 244 additions and 3 deletions

View File

@@ -10,3 +10,12 @@ enableLog() Netscript Function
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')``
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");