Home > bitburner > NS > enableLog
Enables logging for the given NS function.
Signature:
enableLog(fn: string): void;|
Parameter |
Type |
Description |
|---|---|---|
|
fn |
string |
Name of the NS function for which to enable logging. |
Returns:
void
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")
ns.enableLog("hack"); // Enable logging for `ns.hack()`