mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-01 20:13:51 +01:00
789 B
789 B
Home > bitburner > NS > disableLog
NS.disableLog() method
Disables logging for the given NS function.
Signature:
disableLog(fn: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
fn | string | Name of the NS function for which to disable logging. |
Returns:
void
Remarks
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")
Example
ns.disableLog("hack"); // Disable logging for `ns.hack()`