bitburner-src/doc/source/netscript/basicfunctions/enableLog.rst

21 lines
664 B
ReStructuredText
Raw Normal View History

enableLog() Netscript Function
==============================
2021-03-12 08:51:56 +01:00
.. js:function:: enableLog(functionName)
: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");