Home > bitburner > NS > disableLog
Disables logging for the given NS function.
Signature:
disableLog(fn: string): void;|
Parameter |
Type |
Description |
|---|---|---|
|
fn |
string |
Name of the NS function for which to disable logging. |
Returns:
void
RAM cost: 0 GB
Logging can be disabled for all functions by passing ALL as the argument.
For specific interfaces, use the form "namespace.functionName". (e.g. "ui.setTheme")
ns.disableLog("hack"); // Disable logging for `ns.hack()`