bitburner-src/markdown/bitburner.ns.enablelog.md
Fireball5939 95394b5956
DOCUMENTATION: Improve ns.enableLog() docs to remove a missleading description (#1634)
Changed ns.enableLog documentation to be very similar to ns.disableLog, to remove possible confusion that it only undoes the effects of ns.disableLog
2024-08-26 19:49:44 -07:00

780 B

Home > bitburner > NS > enableLog

NS.enableLog() method

Enables logging for the given NS function.

Signature:

enableLog(fn: string): void;

Parameters

Parameter Type Description
fn string Name of the NS function for which to enable logging.

Returns:

void

Remarks

RAM cost: 0 GB

Logging can be enabled for all functions by passing ALL as the argument.

For specific interfaces, use the form "namespace.functionName". (e.g. "ui.setTheme")

Example

ns.enableLog("hack"); // Enable logging for `ns.hack()`