bitburner-src/markdown/bitburner.ns.disablelog.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

905 B

Home > bitburner > NS > disableLog

NS.disableLog() method

Disables logging for the given function. Logging can be disabled for all functions by passing `ALL` as the argument.

Note that this does not completely remove all logging functionality. This only stops a function from logging when the function is successful. If the function fails, it will still log the reason for failure.

Notable functions that cannot have their logs disabled: run, exec, exit.

Signature:

disableLog(fn: string): void;

Parameters

Parameter Type Description
fn string Name of function for which to disable logging.

Returns:

void

Remarks

0 GB