Home > bitburner > NS > isLogEnabled
Checks the status of the logging for the given NS function.
Signature:
isLogEnabled(fn: string): boolean;
Parameter | Type | Description |
---|---|---|
fn | string | Name of function to check. |
Returns:
boolean
Returns a boolean indicating whether or not logging is enabled for that NS function (or ALL
).
RAM cost: 0 GB
ns.print(ns.isLogEnabled("hack")); // Check if logging is enabled for `ns.hack()`