15 lines
364 B
ReStructuredText
Raw Normal View History

isLogEnabled() Netscript Function
=================================
2021-03-12 02:51:56 -05:00
.. js:function:: isLogEnabled(functionName)
:RAM cost: 0 GB
2021-03-12 02:51:56 -05:00
:param string functionName: Name of function to check.
:returns: ``true`` is logs are enabled for this function or for 'ALL'
2021-03-12 02:51:56 -05:00
Example:
.. code-block:: javascript
2023-01-06 14:43:09 +02:00
ns.isLogEnabled('hack'); // returns: true