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

15 lines
361 B
ReStructuredText
Raw Normal View History

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